Fix: update ax_pthread macro to handle newer clang
[urcu.git] / urcu-pointer.c
index 7dfb53a693099c80fc100e0063caea97dad98a77..61e35da5d718a05dc0f8fad69b0aeb370c7c1d66 100644 (file)
@@ -24,7 +24,7 @@
  * IBM's contributions to this file may be relicensed under LGPLv2 or later.
  */
 
-#include <urcu/uatomic_arch.h>
+#include <urcu/uatomic.h>
 
 #include "urcu/static/urcu-pointer.h"
 /* Do not #define _LGPL_SOURCE to ensure we can emit the wrapper symbols */
@@ -40,7 +40,8 @@ void *rcu_dereference_sym(void *p)
 void *rcu_set_pointer_sym(void **p, void *v)
 {
        cmm_wmb();
-       return uatomic_set(p, v);
+       uatomic_set(p, v);
+       return v;
 }
 
 void *rcu_xchg_pointer_sym(void **p, void *v)
This page took 0.022356 seconds and 4 git commands to generate.