Skip to content

Commit e645c3a

Browse files
committed
Merge branch 'PHP-8.4'
2 parents 024c646 + 405931a commit e645c3a

File tree

6 files changed

+31
-17
lines changed

6 files changed

+31
-17
lines changed

cmake/ext/fileinfo/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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).
6669
cmake_push_check_state(RESET)
6770
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
@@ -7,5 +7,16 @@
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
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: 11 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

@@ -54,3 +57,11 @@
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

cmake/main/php_config.cmake.h.in

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,6 @@
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

@@ -528,9 +525,6 @@
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

@@ -595,14 +589,6 @@
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

0 commit comments

Comments
 (0)