about summary refs log tree commit diff
path: root/src/libstore
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2007-10-29T10·03+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2007-10-29T10·03+0000
commit42d80d11705579dbb1e8b9029e2beaa1e86baf91 (patch)
treef91b5c63d642823f0951a393e04660b1014f1798 /src/libstore
parentd91cd305634bfe0de200cb0b062a56349249d26e (diff)
* On FreeBSD, sys/mount.h needs sys/param.h.
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/build.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index 533883dc5298..36e3b5e1dd8b 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -24,13 +24,17 @@
 #include <pwd.h>
 #include <grp.h>
 
+
+/* Includes required for chroot support. */
 #include "config.h"
 
+#if HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
 #if HAVE_SYS_MOUNT_H
 #include <sys/mount.h>
 #endif
 
-
 #define CHROOT_ENABLED HAVE_CHROOT && HAVE_SYS_MOUNT_H && defined(MS_BIND)