Remove #define _LGPL_SOURCE from public headers
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 22 Apr 2011 17:19:18 +0000 (13:19 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 22 Apr 2011 17:19:18 +0000 (13:19 -0400)
this header can be included by non-LGPL applications. Ensure that
use it.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/ust/tracepoint.h
libust/channels.h
libust/marker.c
libust/serialize.c
libust/trace_event.c
libust/tracectl.c
libust/tracepoint.c

index a92f4879d104c8285f8b74eeef5b1d8746d5837f..278a9c19fd577db7c634e0c1ce76269c8c07203b 100644 (file)
@@ -25,9 +25,9 @@
  * Ported to userspace by Pierre-Marc Fournier.
  */
 
-#define _LGPL_SOURCE
 #include <urcu-bp.h>
 #include <ust/core.h>
+#include <urcu/list.h>
 
 struct tracepoint;
 
index e7bc59fefb36be0e4b4c513077c19b5f7939651d..abe3c1354ccad529071f0bab1a1b1aa4bba90de4 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
+#define _LGPL_SOURCE
 #include <linux/limits.h>
 #include <errno.h>
 #include <ust/kcompat/kcompat.h>
 #include <ust/core.h>
-
-#define _LGPL_SOURCE
 #include <urcu/list.h>
 #include <urcu/urcu_ref.h>
 
index d475d82dcf834f2dd066d18858669c28f42f9cad..43f032826b3263611b401f9138bb5613fca3e1aa 100644 (file)
@@ -16,9 +16,9 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
+#define _LGPL_SOURCE
 #include <stdlib.h>
 #include <errno.h>
-#define _LGPL_SOURCE
 #include <urcu-bp.h>
 #include <urcu/rculist.h>
 #include <urcu/hlist.h>
index 31174d82d47d7690fc7de6bbc753bbcc643716e2..c3b7fc3d1d918e534251ee3c7f13d39175d2221c 100644 (file)
@@ -25,6 +25,7 @@
  */
 
 #define _GNU_SOURCE
+#define _LGPL_SOURCE
 #include <unistd.h>
 #include <sys/syscall.h>
 #include <stdarg.h>
@@ -32,7 +33,6 @@
 #include <stdint.h>
 #include <stdio.h>
 
-#define _LGPL_SOURCE
 #include <urcu-bp.h>
 #include <urcu/rculist.h>
 
index f96adf6807c35e22ea27e0801511cc7c9b3bcb01..a605901327531534c38a7a6ff1231ba70d5b6b13 100644 (file)
  *
  */
 
+#define _LGPL_SOURCE
 #include <errno.h>
 #include <ust/tracepoint.h>
 #include <ust/core.h>
 #include <ust/kcompat/kcompat.h>
-#include "usterr_signal_safe.h"
-
-#define _LGPL_SOURCE
 #include <urcu-bp.h>
 
+#include "usterr_signal_safe.h"
+
 /* libraries that contain trace_events (struct trace_event_lib) */
 static CDS_LIST_HEAD(libs);
 
index 9634f2270d58790cf088ef69e39b63e664ca5956..1487ac73a3dd0b462798c3095fceed0f44d5a4a9 100644 (file)
@@ -21,6 +21,7 @@
  */
 
 #define _GNU_SOURCE
+#define _LGPL_SOURCE
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdint.h>
index da7f3581619f884b28770fcef52c38e26ff257a5..737e5f5c96c2adc63e6ead4b4aec9fe73efbc1d3 100644 (file)
  * Ported to userspace by Pierre-Marc Fournier.
  */
 
+#define _LGPL_SOURCE
 #include <errno.h>
 #include <ust/tracepoint.h>
 #include <ust/core.h>
 #include <ust/kcompat/kcompat.h>
-#include "usterr_signal_safe.h"
-
-#define _LGPL_SOURCE
 #include <urcu-bp.h>
 #include <urcu/hlist.h>
 
+#include "usterr_signal_safe.h"
+
 //extern struct tracepoint __start___tracepoints[] __attribute__((visibility("hidden")));
 //extern struct tracepoint __stop___tracepoints[] __attribute__((visibility("hidden")));
 
This page took 0.029642 seconds and 4 git commands to generate.