Browse Source

Not all systems have sys/ipc.h so let's check and only include it if we

have it.
experimental/threaded
David Reid 23 years ago
parent
commit
e66a760f6b
  1. 1
      configure.in
  2. 3
      ext/standard/ftok.c

1
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>

3
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)

Loading…
Cancel
Save