diff options
author | David Reid <dreid@php.net> | 2002-11-04 20:08:09 +0000 |
---|---|---|
committer | David Reid <dreid@php.net> | 2002-11-04 20:08:09 +0000 |
commit | e66a760f6bb9d95aaddef09cbdfdd7927d20afa1 (patch) | |
tree | 0a5d3d56a35f75d902c6ae8f4ecf3b097adcd4df | |
parent | 635c7bc7969a5a04dde1e6c4dbc3d76cb9aa1b25 (diff) | |
download | php-git-e66a760f6bb9d95aaddef09cbdfdd7927d20afa1.tar.gz |
Not all systems have sys/ipc.h so let's check and only include it if we
have it.
-rw-r--r-- | configure.in | 1 | ||||
-rw-r--r-- | ext/standard/ftok.c | 3 |
2 files changed, 4 insertions, 0 deletions
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 <sys/types.h> 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 <sys/types.h> + +#ifdef HAVE_SYS_IPC_H #include <sys/ipc.h> +#endif #if HAVE_FTOK /* {{{ proto int ftok(string pathname, string proj) |