]> granicus.if.org Git - php/commitdiff
Not all systems have sys/ipc.h so let's check and only include it if we
authorDavid Reid <dreid@php.net>
Mon, 4 Nov 2002 20:08:09 +0000 (20:08 +0000)
committerDavid Reid <dreid@php.net>
Mon, 4 Nov 2002 20:08:09 +0000 (20:08 +0000)
have it.

configure.in
ext/standard/ftok.c

index 05b0ebbfe84db7711b0ccc6f6b65261d619c1c6e..73dc78888ff222305822bc76f1533c99562a60a0 100644 (file)
@@ -354,6 +354,7 @@ unistd.h \
 unix.h \
 utime.h \
 sys/utsname.h \
+sys/ipc.h \
 ],[],[],[
 #ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
index adb374e060f37e6b8f2172206b5666eef7b23714..3a0d974c161fa8f6593cb0c7847d826c2121618f 100644 (file)
 #include "php.h"
 
 #include <sys/types.h>                                                                                                        
+
+#ifdef HAVE_SYS_IPC_H
 #include <sys/ipc.h>
+#endif
 
 #if HAVE_FTOK
 /* {{{ proto int ftok(string pathname, string proj)