diff options
Diffstat (limited to 'src/sh_mounts.c')
-rw-r--r-- | src/sh_mounts.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sh_mounts.c b/src/sh_mounts.c index 736fa7b..51429eb 100644 --- a/src/sh_mounts.c +++ b/src/sh_mounts.c @@ -397,7 +397,7 @@ int sh_mounts_config_sevopt (const char * opt) */ /* FreeBSD includes */ -#if defined(HOST_IS_FREEBSD) || defined(HOST_IS_OPENBSD) +#if defined(HOST_IS_FREEBSD) || defined(HOST_IS_OPENBSD) || defined(HOST_IS_DARWIN) #include <sys/param.h> #include <sys/ucred.h> #include <sys/mount.h> @@ -571,10 +571,10 @@ static int aix_fs_get (FILE *fd, AixMountTableEntry *prop) } /* end AIX helper routines */ -#endif +#endif #endif -#if defined(HOST_IS_FREEBSD) || defined(HOST_IS_OPENBSD) +#if defined(HOST_IS_FREEBSD) || defined(HOST_IS_OPENBSD) || defined(HOST_IS_DARWIN) /* FreeBSD returns flags instead of strings as mount options, so we'll convert * them here. */ @@ -682,7 +682,7 @@ static struct sh_mounts_mnt * readmounts(void) { list = m; /* The Open/FreeBSD way */ -#if defined(HOST_IS_FREEBSD) || defined(HOST_IS_OPENBSD) +#if defined(HOST_IS_FREEBSD) || defined(HOST_IS_OPENBSD) || defined(HOST_IS_DARWIN) { struct statfs *fsp; int entries; |