2011/7/6 Christoph Egger <[email protected]>: > -#ifdef __linux__ > +#if defined(__linux__) || defined(__FreeBSD_kernel__) > #define _XOPEN_SOURCE 700 > #else > #define _XOPEN_SOURCE
Please don't use __FreeBSD_kernel__ for userland checks, it can break things when other systems based on kernel of FreeBSD (such as FreeBSD itself) decide to define this macro. The following should work just fine: #if defined(__linux__) || defined(__GLIBC__) // glibc code #else // .... -- Robert Millan -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

