diff options
-rw-r--r-- | configure.in | 4 | ||||
-rw-r--r-- | ext/standard/filestat.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 45e82974c6..d04a272dce 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 <sys/param.h> +#endif #ifdef HAVE_SYS_TYPES_H #include <sys/types.h> #endif 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 |