diff --git a/configure.in b/configure.in index 05b0ebbfe84..73dc78888ff 100644 --- a/configure.in +++ b/configure.in @@ -354,6 +354,7 @@ unistd.h \ unix.h \ utime.h \ sys/utsname.h \ +sys/ipc.h \ ],[],[],[ #ifdef HAVE_SYS_TYPES_H #include diff --git a/ext/standard/ftok.c b/ext/standard/ftok.c index adb374e060f..3a0d974c161 100644 --- a/ext/standard/ftok.c +++ b/ext/standard/ftok.c @@ -21,7 +21,10 @@ #include "php.h" #include + +#ifdef HAVE_SYS_IPC_H #include +#endif #if HAVE_FTOK /* {{{ proto int ftok(string pathname, string proj)