1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 05:21:16 +02:00

* On FreeBSD, sys/mount.h needs sys/param.h.

This commit is contained in:
Eelco Dolstra 2007-10-29 10:03:07 +00:00
parent d91cd30563
commit 42d80d1170
2 changed files with 12 additions and 3 deletions

View file

@ -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)