urcu libraries can directly use the _LGPL_SOURCE wfqueue
[urcu.git] / urcu.c
diff --git a/urcu.c b/urcu.c
index be6d4bdfc55b32d624011280c972d6f2772f2853..20bbf36727663b514405f6d49a3b97f422a20979 100644 (file)
--- a/urcu.c
+++ b/urcu.c
@@ -25,6 +25,7 @@
 
 #define _BSD_SOURCE
 #define _GNU_SOURCE
+#define _LGPL_SOURCE
 #include <stdio.h>
 #include <pthread.h>
 #include <signal.h>
 #include <errno.h>
 #include <poll.h>
 
+#include "urcu/wfqueue.h"
 #include "urcu/map/urcu.h"
-
 #include "urcu/static/urcu.h"
+
 /* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */
+#undef _LGPL_SOURCE
 #include "urcu.h"
+#define _LGPL_SOURCE
 
 /*
  * If a reader is really non-cooperative and refuses to commit its
This page took 0.022321 seconds and 4 git commands to generate.