Skip to content

Commit c2615c4

Browse files
committed
Sync config headers
1 parent e595407 commit c2615c4

File tree

2 files changed

+58
-5
lines changed

2 files changed

+58
-5
lines changed

cmake/ext/posix/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,11 @@ target_sources(
4343

4444
target_compile_definitions(php_posix PRIVATE ZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
4545

46+
check_symbol_exists(ctermid "stdio.h" HAVE_CTERMID)
4647
cmake_push_check_state(RESET)
4748
set(CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
4849
check_symbol_exists(eaccess "unistd.h" HAVE_EACCESS)
4950
cmake_pop_check_state()
50-
51-
check_symbol_exists(ctermid "stdio.h" HAVE_CTERMID)
5251
check_symbol_exists(getgrgid_r "grp.h" HAVE_GETGRGID_R)
5352
check_symbol_exists(getgroups "unistd.h" HAVE_GETGROUPS)
5453
check_symbol_exists(getpgid "unistd.h" HAVE_GETPGID)

cmake/main/config.w32.cmake.h.in

Lines changed: 57 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,9 @@
560560
/* Define to 1 if Capstone is available. */
561561
#cmakedefine HAVE_CAPSTONE 1
562562

563+
/* Define to 1 if you have the 'ctermid' function. */
564+
#cmakedefine HAVE_CTERMID 1
565+
563566
/* Define to 1 if the PHP extension 'ctype' is available. */
564567
#cmakedefine HAVE_CTYPE 1
565568

@@ -572,9 +575,6 @@
572575
/* Define to 1 if the PHP extension 'dba' is available. */
573576
#cmakedefine HAVE_DBA 1
574577

575-
/* Define to 1 if you have the <timelib_config.h> header file. */
576-
#cmakedefine HAVE_TIMELIB_CONFIG_H 1
577-
578578
/* Define to 1 if you have the 'dcngettext' function. */
579579
#cmakedefine HAVE_DCNGETTEXT 1
580580

@@ -584,6 +584,9 @@
584584
/* Define to 1 if the PHP extension 'dom' is available. */
585585
#cmakedefine HAVE_DOM 1
586586

587+
/* Define to 1 if you have the 'eaccess' function. */
588+
#cmakedefine HAVE_EACCESS 1
589+
587590
/* Define to 1 if the PHP extension 'enchant' is available. */
588591
#cmakedefine HAVE_ENCHANT 1
589592

@@ -631,6 +634,9 @@
631634
/* Define to 1 if flush should be called explicitly after a buffered io. */
632635
#cmakedefine HAVE_FLUSHIO 1
633636

637+
/* Define to 1 if you have the 'fpathconf' function. */
638+
#cmakedefine HAVE_FPATHCONF 1
639+
634640
/* Define to 1 if the PHP extension 'ftp' is available. */
635641
#cmakedefine HAVE_FTP 1
636642

@@ -683,9 +689,27 @@
683689
/* Define to 1 if iconv implementation is glibc. */
684690
#cmakedefine HAVE_GLIBC_ICONV 1
685691

692+
/* Define to 1 if you have the 'getgrgid_r' function. */
693+
#cmakedefine HAVE_GETGRGID_R 1
694+
695+
/* Define to 1 if you have the 'getgroups' function. */
696+
#cmakedefine HAVE_GETGROUPS 1
697+
698+
/* Define to 1 if you have the 'getpgid' function. */
699+
#cmakedefine HAVE_GETPGID 1
700+
701+
/* Define to 1 if you have the 'getrlimit' function. */
702+
#cmakedefine HAVE_GETRLIMIT 1
703+
704+
/* Define to 1 if you have the 'getsid' function. */
705+
#cmakedefine HAVE_GETSID 1
706+
686707
/* Define to 1 if iconv implementation is IBM. */
687708
#cmakedefine HAVE_IBM_ICONV 1
688709

710+
/* Define to 1 if you have the 'initgroups' function. */
711+
#cmakedefine HAVE_INITGROUPS 1
712+
689713
/* Define to 1 if you have the libavif library. */
690714
#cmakedefine HAVE_LIBAVIF 1
691715

@@ -707,9 +731,18 @@
707731
/* Define to 1 if you have the libwebp library. */
708732
#cmakedefine HAVE_LIBWEBP 1
709733

734+
/* Define to 1 if you have the 'mkfifo' function. */
735+
#cmakedefine HAVE_MKFIFO 1
736+
737+
/* Define to 1 if you have the 'mknod' function. */
738+
#cmakedefine HAVE_MKNOD 1
739+
710740
/* Define to 1 if you have the 'ngettext' function. */
711741
#cmakedefine HAVE_NGETTEXT 1
712742

743+
/* Define to 1 if you have the 'pathconf' function. */
744+
#cmakedefine HAVE_PATHCONF 1
745+
713746
/* PostgreSQL 9.6 or later */
714747
#cmakedefine HAVE_PG_CONTEXT_VISIBILITY 1
715748

@@ -728,6 +761,9 @@
728761
/* Define to 1 if the PHP extension 'pdo_pgsql' is available. */
729762
#cmakedefine HAVE_PDO_PGSQL 1
730763

764+
/* Define to 1 if the PHP extension 'posix' is available. */
765+
#cmakedefine HAVE_POSIX 1
766+
731767
/* Define to 1 if edit/readline library has the 'rl_callback_read_char'
732768
function. */
733769
#cmakedefine HAVE_RL_CALLBACK_READ_CHAR 1
@@ -796,9 +832,24 @@
796832
/* Define to 1 if mbstring has multibyte regex support enabled. */
797833
#cmakedefine HAVE_MBREGEX 1
798834

835+
/* Define to 1 if you have the 'setegid' function. */
836+
#cmakedefine HAVE_SETEGID 1
837+
838+
/* Define to 1 if you have the 'seteuid' function. */
839+
#cmakedefine HAVE_SETEUID 1
840+
841+
/* Define to 1 if you have the 'setrlimit' function. */
842+
#cmakedefine HAVE_SETRLIMIT 1
843+
844+
/* Define to 1 if you have the 'setsid' function. */
845+
#cmakedefine HAVE_SETSID 1
846+
799847
/* Define to 1 if the odbc extension uses the Solid DB. */
800848
#cmakedefine HAVE_SOLID 1
801849

850+
/* Define to 1 if 'domainname' is a member of 'struct utsname'. */
851+
#cmakedefine HAVE_UTSNAME_DOMAINNAME 1
852+
802853
/* Define to 1 if oniguruma has an invalid entry for KOI8 encoding. */
803854
#cmakedefine PHP_ONIG_BAD_KOI8_ENTRY 1
804855

@@ -949,6 +1000,9 @@
9491000
/* Define to 1 if you have the <tidy.h> header file. */
9501001
#cmakedefine HAVE_TIDY_H 1
9511002

1003+
/* Define to 1 if you have the <timelib_config.h> header file. */
1004+
#cmakedefine HAVE_TIMELIB_CONFIG_H 1
1005+
9521006
/* Define to 1 if SQLite library was compiled with the
9531007
SQLITE_OMIT_LOAD_EXTENSION and does not have the extension support with the
9541008
'sqlite3_load_extension' function. For usage in the sqlite3 PHP extension.

0 commit comments

Comments
 (0)