summaryrefslogtreecommitdiff
path: root/timehint.c
diff options
context:
space:
mode:
Diffstat (limited to 'timehint.c')
-rw-r--r--timehint.c3
1 files changed, 3 insertions, 0 deletions
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 <string.h>
#include <libgen.h>