urcu libraries can directly use the _LGPL_SOURCE wfqueue
[urcu.git] / urcu-qsbr.c
index 8d8a9cf05ced0fd18ef9943110dc22a2e6e05e87..5e4348449ca9183b61bf1cbc6a041a549f784c2b 100644 (file)
@@ -24,6 +24,7 @@
  */
 
 #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-qsbr.h"
-
 #define BUILD_QSBR_LIB
 #include "urcu/static/urcu-qsbr.h"
+
 /* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */
+#undef _LGPL_SOURCE
 #include "urcu-qsbr.h"
+#define _LGPL_SOURCE
 
 void __attribute__((destructor)) rcu_exit(void);
 
This page took 0.022767 seconds and 4 git commands to generate.