File tree Expand file tree Collapse file tree 6 files changed +31
-17
lines changed Expand file tree Collapse file tree 6 files changed +31
-17
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,9 @@ target_sources(
6262 php_libmagic.c
6363)
6464
65+ # Check for major, minor, and makedev.
66+ include (PHP/CheckSysMacros)
67+
6568# The strcasestr is missing on Windows and Solaris <= 10 (Solaris 11 has it).
6669cmake_push_check_state(RESET)
6770 set (CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
Original file line number Diff line number Diff line change 77/* Define to 1 if you have the 'strndup' function. */
88#cmakedefine HAVE_STRNDUP 1
99
10+ /* Define to 1 if you have the <sys/sysmacros.h> header file. */
11+ #cmakedefine HAVE_SYS_SYSMACROS_H 1
12+
1013/* Define to 1 if you have the 'utimes' function. */
1114#cmakedefine HAVE_UTIMES 1
15+
16+ /* Define to 1 if 'major', 'minor', and 'makedev' are declared in <mkdev.h>.
17+ */
18+ #cmakedefine MAJOR_IN_MKDEV 1
19+
20+ /* Define to 1 if 'major', 'minor', and 'makedev' are declared in
21+ <sysmacros.h>. */
22+ #cmakedefine MAJOR_IN_SYSMACROS 1
Original file line number Diff line number Diff line change 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@"
Original file line number Diff line number Diff line change @@ -90,6 +90,9 @@ check_symbol_exists(seteuid "unistd.h" HAVE_SETEUID)
9090check_symbol_exists(setrlimit "sys/resource.h" HAVE_SETRLIMIT)
9191check_symbol_exists(setsid "unistd.h" HAVE_SETSID)
9292
93+ # Check for major, minor, and makedev.
94+ include (PHP/CheckSysMacros)
95+
9396include (PHP/CheckTtynameR)
9497
9598cmake_push_check_state(RESET)
Original file line number Diff line number Diff line change 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
5457
5558/* Define to 1 if you have a working 'ttyname_r' function. */
5659#cmakedefine HAVE_TTYNAME_R 1
60+
61+ /* Define to 1 if 'major', 'minor', and 'makedev' are declared in <mkdev.h>.
62+ */
63+ #cmakedefine MAJOR_IN_MKDEV 1
64+
65+ /* Define to 1 if 'major', 'minor', and 'makedev' are declared in
66+ <sysmacros.h>. */
67+ #cmakedefine MAJOR_IN_SYSMACROS 1
Original file line number Diff line number Diff line change 285285/* Define to 1 if you have the 'mach_vm_read' function. */
286286#cmakedefine HAVE_MACH_VM_READ 1
287287
288- /* Define to 1 if you have the 'makedev' function. */
289- #cmakedefine HAVE_MAKEDEV 1
290-
291288/* Define to 1 if you have the 'memcntl' function. */
292289#cmakedefine HAVE_MEMCNTL 1
293290
528525/* Define to 1 if you have the <sys/sysexits.h> header file. */
529526#cmakedefine HAVE_SYS_SYSEXITS_H 1
530527
531- /* Define to 1 if you have the <sys/sysmacros.h> header file. */
532- #cmakedefine HAVE_SYS_SYSMACROS_H 1
533-
534528/* Define to 1 if you have the <sys/time.h> header file. */
535529#cmakedefine HAVE_SYS_TIME_H 1
536530
595589/* Define to 1 if you have the <wmmintrin.h> header file. */
596590#cmakedefine HAVE_WMMINTRIN_H 1
597591
598- /* Define to 1 if 'major', 'minor', and 'makedev' are declared in <mkdev.h>.
599- */
600- #cmakedefine MAJOR_IN_MKDEV 1
601-
602- /* Define to 1 if 'major', 'minor', and 'makedev' are declared in
603- <sysmacros.h>. */
604- #cmakedefine MAJOR_IN_SYSMACROS 1
605-
606592/* Define to 1 if 'asctime_r' declaration is missing. */
607593#cmakedefine MISSING_ASCTIME_R_DECL 1
608594
You can’t perform that action at this time.
0 commit comments