From: Mathieu Desnoyers Date: Sat, 3 Sep 2011 14:07:41 +0000 (-0400) Subject: rculfstack/queue: define _LGPL_SOURCE around static header include X-Git-Tag: v0.6.5~35 X-Git-Url: http://git.liburcu.org/?p=urcu.git;a=commitdiff_plain;h=ae4510b56f1b6a65562ecd1c79dc0d470274aaf2 rculfstack/queue: define _LGPL_SOURCE around static header include ... so the urcu-pointer header takes the LGPL version of rcu_dereference and friends. Signed-off-by: Mathieu Desnoyers --- diff --git a/rculfqueue.c b/rculfqueue.c index d1cea30..38eddcf 100644 --- a/rculfqueue.c +++ b/rculfqueue.c @@ -20,9 +20,10 @@ * 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 */ +#undef _LGPL_SOURCE #include "urcu/rculfqueue.h" +#define _LGPL_SOURCE #include "urcu/static/rculfqueue.h" /* diff --git a/rculfstack.c b/rculfstack.c index cf5711e..574ea87 100644 --- a/rculfstack.c +++ b/rculfstack.c @@ -20,9 +20,10 @@ * 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 */ +#undef _LGPL_SOURCE #include "urcu/rculfstack.h" +#define _LGPL_SOURCE #include "urcu/static/rculfstack.h" /*