From d7264e744d83019277f47cd19d7c05f87af7c3f9 Mon Sep 17 00:00:00 2001 From: Jon Parise Date: Fri, 22 Aug 2003 05:11:31 +0000 Subject: [PATCH] MFH configure.in:1.460, filestat.c:1.125: Fix disk_total_space() and disk_free_space() under FreeBSD. --- configure.in | 4 ++++ ext/standard/filestat.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/configure.in b/configure.in index 640b6b8a62..7da4c64e23 100644 --- a/configure.in +++ b/configure.in @@ -327,6 +327,7 @@ PHP_MISSING_FCLOSE_DECL dnl QNX requires unix.h to allow functions in libunix to work properly AC_CHECK_HEADERS([ \ ApplicationServices/ApplicationServices.h \ +sys/param.h \ sys/types.h \ sys/time.h \ netinet/in.h \ @@ -372,6 +373,9 @@ sys/utsname.h \ sys/ipc.h \ dlfcn.h ],[],[],[ +#ifdef HAVE_SYS_PARAM_H +#include +#endif #ifdef HAVE_SYS_TYPES_H #include #endif diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c index 94580f6fdd..e199583d47 100644 --- a/ext/standard/filestat.c +++ b/ext/standard/filestat.c @@ -34,6 +34,10 @@ # include #endif +#if HAVE_SYS_PARAM_H +# include +#endif + #if HAVE_SYS_VFS_H # include #endif -- 2.40.0