summaryrefslogtreecommitdiff
path: root/ext/standard/filestat.c
diff options
context:
space:
mode:
authorJon Parise <jon@php.net>2003-08-21 06:24:17 +0000
committerJon Parise <jon@php.net>2003-08-21 06:24:17 +0000
commit34821ed4742f29612c4b1041a92ae08fe8c9fac1 (patch)
treea432524eee9cb4f16d6a15cf464a37da5c20055d /ext/standard/filestat.c
parentbf06717b1363abaf4c76deed07f1bee45e588576 (diff)
downloadphp-git-34821ed4742f29612c4b1041a92ae08fe8c9fac1.tar.gz
Under FreeBSD, statfs(2) requires both <sys/mount.h> _and_ <sys/param.h>.
The autoconf check for <sys/mount.h> was failing because <sys/param.h> wasn't being universally included. This gets disk_total_space() and disk_free_space() working again under FreeBSD.
Diffstat (limited to 'ext/standard/filestat.c')
-rw-r--r--ext/standard/filestat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c
index 184bf7c974..f0c837198d 100644
--- a/ext/standard/filestat.c
+++ b/ext/standard/filestat.c
@@ -34,6 +34,10 @@
# include <unistd.h>
#endif
+#if HAVE_SYS_PARAM_H
+# include <sys/param.h>
+#endif
+
#if HAVE_SYS_VFS_H
# include <sys/vfs.h>
#endif