Fix: no LGPL define for malloc and pthread wrappers
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 25 May 2016 23:39:15 +0000 (19:39 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 25 May 2016 23:39:15 +0000 (19:39 -0400)
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 <jeremie.galarneau@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust-libc-wrapper/lttng-ust-malloc.c
liblttng-ust-libc-wrapper/lttng-ust-pthread.c

index 4b21c971516d54ce3a5eaac80e63e660f0f14f84..5d290445026575f15de5074cb33f696be62c09c1 100644 (file)
  */
 
 #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 <lttng/ust-dlfcn.h>
 #include <sys/types.h>
 #include <stdio.h>
index a049d33595a6d367416e627461221f1c8ad8c738..7836ffa02175d7599e4472403964b1b1069f4c33 100644 (file)
  */
 
 #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 <lttng/ust-dlfcn.h>
 #include <helper.h>
 #include <pthread.h>
This page took 0.026019 seconds and 4 git commands to generate.