From ae4510b56f1b6a65562ecd1c79dc0d470274aaf2 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sat, 3 Sep 2011 10:07:41 -0400 Subject: [PATCH] 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 --- rculfqueue.c | 3 ++- rculfstack.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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" /* -- 2.34.1