From: David Reid Date: Mon, 4 Nov 2002 20:08:09 +0000 (+0000) Subject: Not all systems have sys/ipc.h so let's check and only include it if we X-Git-Tag: php-4.3.0RC1~287 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e66a760f6bb9d95aaddef09cbdfdd7927d20afa1;p=php Not all systems have sys/ipc.h so let's check and only include it if we have it. --- diff --git a/configure.in b/configure.in index 05b0ebbfe8..73dc78888f 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 adb374e060..3a0d974c16 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)