From: Mathieu Desnoyers Date: Wed, 25 May 2016 23:39:15 +0000 (-0400) Subject: Fix: no LGPL define for malloc and pthread wrappers X-Git-Tag: v2.9.0-rc1~80 X-Git-Url: http://git.liburcu.org/?p=lttng-ust.git;a=commitdiff_plain;h=d7e8946293f1db01e934752dada165a85ee7099b Fix: no LGPL define for malloc and pthread wrappers Do _not_ define _LGPL_SOURCE because we don't want to create a circular dependency loop between this malloc wrapper, liburcu and libc. Signed-off-by: Jérémie Galarneau Signed-off-by: Mathieu Desnoyers --- diff --git a/liblttng-ust-libc-wrapper/lttng-ust-malloc.c b/liblttng-ust-libc-wrapper/lttng-ust-malloc.c index 4b21c971..5d290445 100644 --- a/liblttng-ust-libc-wrapper/lttng-ust-malloc.c +++ b/liblttng-ust-libc-wrapper/lttng-ust-malloc.c @@ -18,7 +18,11 @@ */ #define _GNU_SOURCE -#define _LGPL_SOURCE +/* + * Do _not_ define _LGPL_SOURCE because we don't want to create a + * circular dependency loop between this malloc wrapper, liburcu and + * libc. + */ #include #include #include diff --git a/liblttng-ust-libc-wrapper/lttng-ust-pthread.c b/liblttng-ust-libc-wrapper/lttng-ust-pthread.c index a049d335..7836ffa0 100644 --- a/liblttng-ust-libc-wrapper/lttng-ust-pthread.c +++ b/liblttng-ust-libc-wrapper/lttng-ust-pthread.c @@ -17,7 +17,11 @@ */ #define _GNU_SOURCE -#define _LGPL_SOURCE +/* + * Do _not_ define _LGPL_SOURCE because we don't want to create a + * circular dependency loop between this malloc wrapper, liburcu and + * libc. + */ #include #include #include