about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2008-12-12T10·20+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2008-12-12T10·20+0000
commitd86bd22d247227e36de9577f25ad35f8fd4c65e0 (patch)
treec2399fa492e19ee6d72f3305157ffba6ccdcc4a9 /src
parentac5478eb525f85e560d822ab3b5cb6ccb664d56e (diff)
* Define _GNU_SOURCE. Hopefully this fixes the build on Debian 4.0
  (http://hydra.nixos.org/nixlog/384/1).

Diffstat (limited to 'src')
-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 6992d02c4d70..53828d5ce7fc 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