rculfstack/queue: define _LGPL_SOURCE around static header include
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 3 Sep 2011 14:07:41 +0000 (10:07 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 3 Sep 2011 14:07:41 +0000 (10:07 -0400)
... so the urcu-pointer header takes the LGPL version of rcu_dereference
and friends.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
rculfqueue.c
rculfstack.c

index d1cea30db52fe0b09e1efa618b121ae30c5191b6..38eddcf3a4283c2b86d2d66ee5604bf3a57b2213 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#undef _LGPL_SOURCE
 /* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */
 /* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */
+#undef _LGPL_SOURCE
 #include "urcu/rculfqueue.h"
 #include "urcu/rculfqueue.h"
+#define _LGPL_SOURCE
 #include "urcu/static/rculfqueue.h"
 
 /*
 #include "urcu/static/rculfqueue.h"
 
 /*
index cf5711e10f4b53ec6d51580756f4b022e8784962..574ea874265b316f9aed44ce998c16a034f3c585 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#undef _LGPL_SOURCE
 /* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */
 /* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */
+#undef _LGPL_SOURCE
 #include "urcu/rculfstack.h"
 #include "urcu/rculfstack.h"
+#define _LGPL_SOURCE
 #include "urcu/static/rculfstack.h"
 
 /*
 #include "urcu/static/rculfstack.h"
 
 /*
This page took 0.025283 seconds and 4 git commands to generate.