X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=rculfstack.c;h=aa906af9480c66efce8c35ccf8d2b3625b9aabfd;hb=2d47d69ea0876148b5628aa8f7bd9f030a8c5d2f;hp=2c260460b690ee85e9f688a372feae56a1b5889d;hpb=16aa9ee87cf4364921c36025359be01390338d87;p=urcu.git diff --git a/rculfstack.c b/rculfstack.c index 2c26046..aa906af 100644 --- a/rculfstack.c +++ b/rculfstack.c @@ -21,10 +21,20 @@ */ /* Use the urcu symbols to select the appropriate rcu flavor at link time */ -#include "urcu.h" +#define _LGPL_SOURCE + +#ifdef RCU_QSBR +# include "urcu-qsbr.h" +#elif defined(RCU_BP) +# include "urcu-bp.h" +#else +# include "urcu.h" +#endif + +#undef _LGPL_SOURCE /* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */ #include "urcu/rculfstack.h" -#include "urcu/rculfstack-static.h" +#include "urcu/static/rculfstack.h" /* * library wrappers to be used by non-LGPL compatible source code.