Skip to content

Commit 3484998

Browse files
committed
Sync config headers
1 parent ec5391d commit 3484998

File tree

6 files changed

+29
-20
lines changed

6 files changed

+29
-20
lines changed

cmake/ext/fileinfo/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ target_sources(
6161
php_libmagic.c
6262
)
6363

64+
# Check for major, minor, and makedev.
65+
include(PHP/CheckSysMacros)
66+
6467
# The strcasestr is missing on Windows and Solaris <= 10 (Solaris 11 has it).
6568
cmake_push_check_state(RESET)
6669
set(CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)

cmake/ext/fileinfo/config.cmake.h.in

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,16 @@
44
/* Define to 1 if you have the 'strndup' function. */
55
#cmakedefine HAVE_STRNDUP 1
66

7+
/* Define to 1 if you have the <sys/sysmacros.h> header file. */
8+
#cmakedefine HAVE_SYS_SYSMACROS_H 1
9+
710
/* Define to 1 if you have the 'utimes' function. */
811
#cmakedefine HAVE_UTIMES 1
12+
13+
/* Define to 1 if 'major', 'minor', and 'makedev' are declared in <mkdev.h>.
14+
*/
15+
#cmakedefine MAJOR_IN_MKDEV 1
16+
17+
/* Define to 1 if 'major', 'minor', and 'makedev' are declared in
18+
<sysmacros.h>. */
19+
#cmakedefine MAJOR_IN_SYSMACROS 1
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
/* The MySQL Unix socket location. */
2-
#cmakedefine PHP_MYSQL_UNIX_SOCK_ADDR "@PHP_MYSQL_UNIX_SOCK_ADDR@"
3-
41
/* The MySQL Unix socket location as defined by 'mysql_config' for use with
52
the pdo_mysql extension. */
63
#cmakedefine PDO_MYSQL_UNIX_ADDR "@PDO_MYSQL_UNIX_ADDR@"
74

85
/* Define to 1 if the pdo_mysql extension uses mysqlnd. */
96
#cmakedefine PDO_USE_MYSQLND 1
7+
8+
/* The MySQL Unix socket location. */
9+
#cmakedefine PHP_MYSQL_UNIX_SOCK_ADDR "@PHP_MYSQL_UNIX_SOCK_ADDR@"

cmake/ext/posix/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ check_symbol_exists(seteuid "unistd.h" HAVE_SETEUID)
9090
check_symbol_exists(setrlimit "sys/resource.h" HAVE_SETRLIMIT)
9191
check_symbol_exists(setsid "unistd.h" HAVE_SETSID)
9292

93+
# Check for major, minor, and makedev.
94+
include(PHP/CheckSysMacros)
95+
9396
include(PHP/CheckTtynameR)
9497

9598
cmake_push_check_state(RESET)

cmake/ext/posix/config.cmake.h.in

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
/* Define to 1 if you have the 'initgroups' function. */
2626
#cmakedefine HAVE_INITGROUPS 1
2727

28+
/* Define to 1 if you have the 'makedev' function. */
29+
#cmakedefine HAVE_MAKEDEV 1
30+
2831
/* Define to 1 if you have the 'mkfifo' function. */
2932
#cmakedefine HAVE_MKFIFO 1
3033

@@ -49,6 +52,12 @@
4952
/* Define to 1 if you have the 'setsid' function. */
5053
#cmakedefine HAVE_SETSID 1
5154

55+
/* Define to 1 if you have the <sys/mkdev.h> header file. */
56+
#cmakedefine HAVE_SYS_MKDEV_H 1
57+
58+
/* Define to 1 if you have the <sys/sysmacros.h> header file. */
59+
#cmakedefine HAVE_SYS_SYSMACROS_H 1
60+
5261
/* Define to 1 if you have a working 'ttyname_r' function. */
5362
#cmakedefine HAVE_TTYNAME_R 1
5463

cmake/main/php_config.cmake.h.in

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,6 @@
313313
/* Define to 1 if you have the 'mach_vm_read' function. */
314314
#cmakedefine HAVE_MACH_VM_READ 1
315315

316-
/* Define to 1 if you have the 'makedev' function. */
317-
#cmakedefine HAVE_MAKEDEV 1
318-
319316
/* Define to 1 if you have the 'memcntl' function. */
320317
#cmakedefine HAVE_MEMCNTL 1
321318

@@ -529,9 +526,6 @@
529526
/* Define to 1 if you have the <sys/loadavg.h> header file. */
530527
#cmakedefine HAVE_SYS_LOADAVG_H 1
531528

532-
/* Define to 1 if you have the <sys/mkdev.h> header file. */
533-
#cmakedefine HAVE_SYS_MKDEV_H 1
534-
535529
/* Define to 1 if you have the <sys/mman.h> header file. */
536530
#cmakedefine HAVE_SYS_MMAN_H 1
537531

@@ -571,9 +565,6 @@
571565
/* Define to 1 if you have the <sys/sysexits.h> header file. */
572566
#cmakedefine HAVE_SYS_SYSEXITS_H 1
573567

574-
/* Define to 1 if you have the <sys/sysmacros.h> header file. */
575-
#cmakedefine HAVE_SYS_SYSMACROS_H 1
576-
577568
/* Define to 1 if you have the <sys/time.h> header file. */
578569
#cmakedefine HAVE_SYS_TIME_H 1
579570

@@ -635,14 +626,6 @@
635626
/* Define to 1 if you have the <wmmintrin.h> header file. */
636627
#cmakedefine HAVE_WMMINTRIN_H 1
637628

638-
/* Define to 1 if 'major', 'minor', and 'makedev' are declared in <mkdev.h>.
639-
*/
640-
#cmakedefine MAJOR_IN_MKDEV 1
641-
642-
/* Define to 1 if 'major', 'minor', and 'makedev' are declared in
643-
<sysmacros.h>. */
644-
#cmakedefine MAJOR_IN_SYSMACROS 1
645-
646629
/* Define to 1 if 'asctime_r' declaration is missing. */
647630
#cmakedefine MISSING_ASCTIME_R_DECL 1
648631

0 commit comments

Comments
 (0)