Skip to content

Commit 2d65ed2

Browse files
committed
Move strnlen definition to Zend scope
1 parent f61977d commit 2d65ed2

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

cmake/Zend/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ cmake_pop_check_state()
401401

402402
check_symbol_exists(pthread_stackseg_np pthread.h HAVE_PTHREAD_STACKSEG_NP)
403403
check_symbol_exists(sigsetjmp setjmp.h HAVE_SIGSETJMP)
404+
check_symbol_exists(strnlen string.h HAVE_STRNLEN)
404405

405406
include(cmake/CheckAsmGoto.cmake)
406407
include(cmake/CheckCpuidCount.cmake)

cmake/Zend/cmake/zend_config.h.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@
6565
/* Define if you have 'strerror_r'. */
6666
#cmakedefine HAVE_STRERROR_R 1
6767

68+
/* Define to 1 if you have the 'strnlen' function. */
69+
#cmakedefine HAVE_STRNLEN 1
70+
6871
/* Define to 1 if strerror_r returns char *. */
6972
#cmakedefine STRERROR_R_CHAR_P 1
7073

cmake/cmake/ConfigureChecks.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,6 @@ endblock()
359359
check_symbol_exists(statvfs sys/statvfs.h HAVE_STATVFS)
360360
check_symbol_exists(std_syslog sys/syslog.h HAVE_STD_SYSLOG)
361361
check_symbol_exists(strcasecmp strings.h HAVE_STRCASECMP)
362-
check_symbol_exists(strnlen string.h HAVE_STRNLEN)
363362
check_symbol_exists(symlink unistd.h HAVE_SYMLINK)
364363
check_symbol_exists(tzset time.h HAVE_TZSET)
365364
check_symbol_exists(unsetenv stdlib.h HAVE_UNSETENV)

cmake/main/cmake/php_config.h.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -392,9 +392,6 @@
392392
/* Define to 1 if you have the 'strndup' function. */
393393
#cmakedefine HAVE_STRNDUP 1
394394

395-
/* Define to 1 if you have the 'strnlen' function. */
396-
#cmakedefine HAVE_STRNLEN 1
397-
398395
/* Define to 1 if you have the 'strtok_r' function. */
399396
#cmakedefine HAVE_STRTOK_R 1
400397

0 commit comments

Comments
 (0)