From d7e8946293f1db01e934752dada165a85ee7099b Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Wed, 25 May 2016 19:39:15 -0400 Subject: [PATCH] Fix: no LGPL define for malloc and pthread wrappers MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- liblttng-ust-libc-wrapper/lttng-ust-malloc.c | 6 +++++- liblttng-ust-libc-wrapper/lttng-ust-pthread.c | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) 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 -- 2.34.1