@@ -14,20 +14,20 @@ * file. */ #include "config.h" -/* Work around __block being used by glibc */ -#include /* include any libc header to get the libc defines */ -#ifdef __GLIBC__ -# undef __USE_XOPEN -#endif - #include #ifdef HAVE_UNISTD_H +# ifdef __GLIBC__ +# undef __USE_XOPEN /* Needed to avoid old glibc using __block */ +# endif # include +# ifdef __GLIBC__ +# define __USE_XOPEN 1 +# endif #endif #ifdef HAVE_SYS_IOCTL_H # include #endif