aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libstore/build.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index 6992d02c4..53828d5ce 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -34,6 +34,9 @@
#include <sys/mount.h>
#endif
#if HAVE_SCHED_H
+#if !defined _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
#include <sched.h>
#endif