[lttng-dev] [PATCH] urcu: fix deprecation warning with new glibc
Mathieu Desnoyers
mathieu.desnoyers at efficios.com
Mon Jun 1 10:25:37 EDT 2015
----- On Jun 1, 2015, at 3:16 PM, Marc Kleine-Budde mkl at pengutronix.de wrote:
> This patch fixes the following warning:
>
> /usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE
> are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
> # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
And why does this patch just add _DEFAULT_SOURCE without removing _BSD_SOURCE ?
Is it the intended transition path ? Is it documented somewhere ?
Thanks,
Mathieu
>
> Signed-off-by: Marc Kleine-Budde <mkl at pengutronix.de>
> ---
> urcu.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/urcu.c b/urcu.c
> index 1429f6dfbbd3..6f5b1e01ea04 100644
> --- a/urcu.c
> +++ b/urcu.c
> @@ -26,6 +26,7 @@
> #define _BSD_SOURCE
> #define _GNU_SOURCE
> #define _LGPL_SOURCE
> +#define _DEFAULT_SOURCE
> #include <stdio.h>
> #include <pthread.h>
> #include <signal.h>
> --
> 2.1.4
>
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
--
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
More information about the lttng-dev
mailing list