diff options
-rw-r--r-- | ext/standard/basic_functions.c | 2 | ||||
-rw-r--r-- | ext/standard/ftok.c | 2 | ||||
-rw-r--r-- | ext/standard/php_ftok.h | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index ccc0b0a833..c8d5aa505a 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -832,7 +832,9 @@ function_entry basic_functions[] = { PHP_FE(version_compare, NULL) /* functions from ftok.c*/ +#if HAVE_FTOK PHP_FE(ftok, NULL) +#endif PHP_FE(str_rot13, NULL) 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: diff --git a/ext/standard/php_ftok.h b/ext/standard/php_ftok.h index 6f8029cde7..978520a30a 100644 --- a/ext/standard/php_ftok.h +++ b/ext/standard/php_ftok.h @@ -21,6 +21,8 @@ #ifndef PHP_FTOK_H #define PHP_FTOK_H +#if HAVE_FTOK PHP_FUNCTION(ftok); +#endif #endif /* PHP_FTOK_H */ |