From: Mathieu Desnoyers Date: Wed, 23 Sep 2009 23:21:56 +0000 (-0400) Subject: urcu-defer: remove dependency on linux/futex.h X-Git-Tag: v0.1~38 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=80cca311d95272754494253f5b18d597bb945cfc;p=urcu.git urcu-defer: remove dependency on linux/futex.h > cc -fPIC -Wall -I. -O2 -g -lpthread -c -o urcu-defer.o `echo urcu-defer.c urcu-defer.h | sed 's/[^ ]*\.h//g'` > In file included from urcu-defer.c:31: > /usr/include/linux/futex.h:96: error: expected ‘)’ before ‘*’ token > /usr/include/linux/futex.h:100: error: expected ‘)’ before ‘*’ token Seems broken on ppc. Just for two defines, it's not worth depending on it. Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu-defer.c b/urcu-defer.c index 13f94fa..f0dec91 100644 --- a/urcu-defer.c +++ b/urcu-defer.c @@ -28,7 +28,6 @@ #include #include #include -#include #include #include #include @@ -38,6 +37,8 @@ #include "urcu-defer.h" #define futex(...) syscall(__NR_futex, __VA_ARGS__) +#define FUTEX_WAIT 0 +#define FUTEX_WAKE 1 void __attribute__((destructor)) urcu_defer_exit(void);