X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=urcu.h;h=bc86d435845d6da33255a63d7d5d2fbdecb4aa76;hb=9b171f4656b61d023c327af3d0b4de22eee37353;hp=fb8cedf3e15beab5ba5355b153d0bb999fa1c7fc;hpb=f4a486ac095bd844d0c18995737d589b8f085b69;p=urcu.git diff --git a/urcu.h b/urcu.h index fb8cedf..bc86d43 100644 --- a/urcu.h +++ b/urcu.h @@ -17,6 +17,7 @@ * Distributed under GPLv2 */ +#define __USE_GNU #include /* The "volatile" is due to gcc bugs */ @@ -109,6 +110,8 @@ static inline unsigned long __xchg(unsigned long x, volatile void *ptr, #ifdef DEBUG_YIELD #include +#include +#include #define YIELD_READ (1 << 0) #define YIELD_WRITE (1 << 1)