From e14b909c25b48ef9a484ad5e9a7f765cafbf5d67 Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Wed, 7 Sep 2016 02:39:51 +0100 Subject: Hack around FreeBSD stupidity. When FreeBSD turns on POSIX it disables BSd extenstions, with no possible workaraound. So just don;t ask for POSIX when then insanity becomes visible. --- timehint.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'timehint.c') diff --git a/timehint.c b/timehint.c index c8b4bb84..af1fc700 100644 --- a/timehint.c +++ b/timehint.c @@ -8,12 +8,15 @@ * see the file COPYING in the distribution root for details. */ +#ifdef __linux__ +/* FreeBSD chokes on this */ /* nice() needs _XOPEN_SOURCE, 500 means X/Open 1995 */ #define _XOPEN_SOURCE 500 /* snprintf() needs __DARWIN_C_LEVEL >= 200112L */ #define __DARWIN_C_LEVEL 200112L /* snprintf() needs _DARWIN_C_SOURCE */ #define _DARWIN_C_SOURCE +#endif /* __linux__ */ #include #include -- cgit v1.2.1