Skip to content

Commit c5a73b3

Browse files
author
Derick Rethans
committed
- Remove #ifdefs around ftok function so that it is also available when
none of the IPC extensions are enabled.
1 parent 1264214 commit c5a73b3

File tree

3 files changed

+0
-10
lines changed

3 files changed

+0
-10
lines changed

ext/standard/basic_functions.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -832,9 +832,7 @@ function_entry basic_functions[] = {
832832
PHP_FE(version_compare, NULL)
833833

834834
/* functions from ftok.c*/
835-
#if HAVE_SYSVSEM || HAVE_SYSVSHM || HAVE_SHMOP
836835
PHP_FE(ftok, NULL)
837-
#endif
838836

839837
PHP_FE(str_rot13, NULL)
840838

ext/standard/ftok.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020

2121
#include "php.h"
2222

23-
#if HAVE_SYSVSEM || HAVE_SYSVSHM || HAVE_SHMOP
24-
2523
#include <sys/types.h>
2624
#include <sys/ipc.h>
2725

@@ -56,8 +54,6 @@ PHP_FUNCTION(ftok)
5654
}
5755
/* }}} */
5856

59-
#endif
60-
6157
/*
6258
* Local variables:
6359
* tab-width: 4

ext/standard/php_ftok.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@
2121
#ifndef PHP_FTOK_H
2222
#define PHP_FTOK_H
2323

24-
#if HAVE_SYSVSEM || HAVE_SYSVSHM || HAVE_SHMOP
25-
2624
PHP_FUNCTION(ftok);
2725

28-
#endif
29-
3026
#endif /* PHP_FTOK_H */

0 commit comments

Comments
 (0)