X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fhealth%2Fhealth.c;h=830b6f0ef2829e7550fcdded38b17ae8837f265c;hb=389fbf04b41e2002be44a1e3392bfade2f1deeef;hp=49f6dc0ab91d7c7b3a3a1c8adfc6a360916ddddc;hpb=6c71277b0dc97ce8a4ac6b8d359b4b349c04b658;p=lttng-tools.git diff --git a/src/common/health/health.c b/src/common/health/health.c index 49f6dc0ab..830b6f0ef 100644 --- a/src/common/health/health.c +++ b/src/common/health/health.c @@ -16,7 +16,7 @@ * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#define _GNU_SOURCE +#define _LGPL_SOURCE #include #include #include @@ -171,7 +171,7 @@ static int validate_state(struct health_app *ha, struct health_state *state) last = state->last; current = uatomic_read(&state->current); - ret = clock_gettime(CLOCK_MONOTONIC, ¤t_time); + ret = lttng_clock_gettime(CLOCK_MONOTONIC, ¤t_time); if (ret < 0) { PERROR("Error reading time\n"); /* error */