summaryrefslogtreecommitdiff
path: root/ext/standard/ftok.c
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2002-10-20 13:35:56 +0000
committerDerick Rethans <derick@php.net>2002-10-20 13:35:56 +0000
commit3322581c04d2852d8f6ac2d5db82a0eb4a063a40 (patch)
treecda9cb9fc2b4da17c22ea6c496aeea3d8400c931 /ext/standard/ftok.c
parentc5a73b31f6874d15f8a3ecb852a6dde989b9eb8e (diff)
downloadphp-git-3322581c04d2852d8f6ac2d5db82a0eb4a063a40.tar.gz
- Only include ftok() if it is available
Diffstat (limited to 'ext/standard/ftok.c')
-rw-r--r--ext/standard/ftok.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/standard/ftok.c b/ext/standard/ftok.c
index 7f4adf450d..adb374e060 100644
--- a/ext/standard/ftok.c
+++ b/ext/standard/ftok.c
@@ -23,6 +23,7 @@
#include <sys/types.h>
#include <sys/ipc.h>
+#if HAVE_FTOK
/* {{{ proto int ftok(string pathname, string proj)
Convert a pathname and a project identifier to a System V IPC key */
PHP_FUNCTION(ftok)
@@ -53,6 +54,7 @@ PHP_FUNCTION(ftok)
RETURN_LONG(k);
}
/* }}} */
+#endif
/*
* Local variables: