X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=rculfstack.c;h=cf5711e10f4b53ec6d51580756f4b022e8784962;hp=4a3041d9712db7bfb78674d674c916a9a50f5324;hb=4157e1ac43033c8b3ef5405b9c01e8311b2454ca;hpb=af7c2dbeac32c663b64ad05e4eca70e18784463b diff --git a/rculfstack.c b/rculfstack.c index 4a3041d..cf5711e 100644 --- a/rculfstack.c +++ b/rculfstack.c @@ -20,10 +20,6 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -/* Use the urcu symbols to select the appropriate rcu flavor at link time */ -#define _LGPL_SOURCE -#include "urcu.h" - #undef _LGPL_SOURCE /* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */ #include "urcu/rculfstack.h" @@ -44,9 +40,10 @@ void cds_lfs_init_rcu(struct cds_lfs_stack_rcu *s) _cds_lfs_init_rcu(s); } -void cds_lfs_push_rcu(struct cds_lfs_stack_rcu *s, struct cds_lfs_node_rcu *node) +int cds_lfs_push_rcu(struct cds_lfs_stack_rcu *s, + struct cds_lfs_node_rcu *node) { - _cds_lfs_push_rcu(s, node); + return _cds_lfs_push_rcu(s, node); } struct cds_lfs_node_rcu *cds_lfs_pop_rcu(struct cds_lfs_stack_rcu *s)