Skip to content

Commit d70ddff

Browse files
committed
Sync CS
1 parent 2fbd557 commit d70ddff

File tree

9 files changed

+106
-106
lines changed

9 files changed

+106
-106
lines changed

cmake/Zend/CMakeLists.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -388,18 +388,18 @@ install(
388388

389389
check_include_files(cpuid.h HAVE_CPUID_H)
390390

391-
check_symbol_exists(getpid "unistd.h" HAVE_GETPID)
391+
check_symbol_exists(getpid unistd.h HAVE_GETPID)
392392

393393
cmake_push_check_state(RESET)
394394
set(CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
395-
check_symbol_exists(gettid "unistd.h" HAVE_GETTID)
395+
check_symbol_exists(gettid unistd.h HAVE_GETTID)
396396
cmake_pop_check_state()
397397

398-
check_symbol_exists(kill "signal.h" HAVE_KILL)
398+
check_symbol_exists(kill signal.h HAVE_KILL)
399399

400400
cmake_push_check_state(RESET)
401401
set(CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
402-
check_symbol_exists(mremap "sys/mman.h" HAVE_MREMAP)
402+
check_symbol_exists(mremap sys/mman.h HAVE_MREMAP)
403403
cmake_pop_check_state()
404404

405405
# BSD-based systems have pthread_attr_get_np in pthread_np.h.
@@ -421,23 +421,23 @@ endblock()
421421

422422
check_symbol_exists(
423423
pthread_attr_getstack
424-
"pthread.h"
424+
pthread.h
425425
HAVE_PTHREAD_ATTR_GETSTACK
426426
)
427427

428428
check_symbol_exists(
429429
pthread_get_stackaddr_np
430-
"pthread.h"
430+
pthread.h
431431
HAVE_PTHREAD_GET_STACKADDR_NP
432432
)
433433

434434
cmake_push_check_state(RESET)
435435
set(CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
436-
check_symbol_exists(pthread_getattr_np "pthread.h" HAVE_PTHREAD_GETATTR_NP)
436+
check_symbol_exists(pthread_getattr_np pthread.h HAVE_PTHREAD_GETATTR_NP)
437437
cmake_pop_check_state()
438438

439-
check_symbol_exists(pthread_stackseg_np "pthread.h" HAVE_PTHREAD_STACKSEG_NP)
440-
check_symbol_exists(sigsetjmp "setjmp.h" HAVE_SIGSETJMP)
439+
check_symbol_exists(pthread_stackseg_np pthread.h HAVE_PTHREAD_STACKSEG_NP)
440+
check_symbol_exists(sigsetjmp setjmp.h HAVE_SIGSETJMP)
441441

442442
message(CHECK_START "Checking for asm goto support")
443443
cmake_push_check_state(RESET)
@@ -496,7 +496,7 @@ include(cmake/CheckStrerrorR.cmake)
496496
################################################################################
497497

498498
message(CHECK_START "Checking whether to enable Zend signal handling")
499-
check_symbol_exists(sigaction "signal.h" HAVE_SIGACTION)
499+
check_symbol_exists(sigaction signal.h HAVE_SIGACTION)
500500
if(HAVE_SIGACTION AND ZEND_SIGNALS)
501501
message(CHECK_PASS "yes")
502502

cmake/cmake/ConfigureChecks.cmake

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,9 @@ include(PHP/CheckAVX512)
258258
# Check functions.
259259
################################################################################
260260

261-
check_symbol_exists(alphasort "dirent.h" HAVE_ALPHASORT)
262-
check_symbol_exists(explicit_memset "string.h" HAVE_EXPLICIT_MEMSET)
263-
check_symbol_exists(fdatasync "unistd.h" HAVE_FDATASYNC)
261+
check_symbol_exists(alphasort dirent.h HAVE_ALPHASORT)
262+
check_symbol_exists(explicit_memset string.h HAVE_EXPLICIT_MEMSET)
263+
check_symbol_exists(fdatasync unistd.h HAVE_FDATASYNC)
264264
# The fdatasync declaration on macOS is missing in headers, yet is in C library.
265265
if(NOT HAVE_FDATASYNC)
266266
unset(HAVE_FDATASYNC CACHE)
@@ -279,9 +279,9 @@ block()
279279
check_symbol_exists(flock "${headers}" HAVE_FLOCK)
280280
endblock()
281281

282-
check_symbol_exists(ftok "sys/ipc.h" HAVE_FTOK)
283-
check_symbol_exists(funopen "stdio.h" HAVE_FUNOPEN)
284-
check_symbol_exists(getcwd "unistd.h" HAVE_GETCWD)
282+
check_symbol_exists(ftok sys/ipc.h HAVE_FTOK)
283+
check_symbol_exists(funopen stdio.h HAVE_FUNOPEN)
284+
check_symbol_exists(getcwd unistd.h HAVE_GETCWD)
285285

286286
block()
287287
set(headers stdlib.h)
@@ -299,39 +299,39 @@ block()
299299
check_symbol_exists(getloadavg "${headers}" HAVE_GETLOADAVG)
300300
endblock()
301301

302-
check_symbol_exists(getlogin "unistd.h" HAVE_GETLOGIN)
303-
check_symbol_exists(getrusage "sys/resource.h" HAVE_GETRUSAGE)
304-
check_symbol_exists(gettimeofday "sys/time.h" HAVE_GETTIMEOFDAY)
305-
check_symbol_exists(getpwnam_r "pwd.h" HAVE_GETPWNAM_R)
306-
check_symbol_exists(getgrnam_r "grp.h" HAVE_GETGRNAM_R)
307-
check_symbol_exists(getpwuid_r "pwd.h" HAVE_GETPWUID_R)
308-
check_symbol_exists(getwd "unistd.h" HAVE_GETWD)
309-
check_symbol_exists(glob "glob.h" HAVE_GLOB)
310-
check_symbol_exists(lchown "unistd.h" HAVE_LCHOWN)
311-
check_symbol_exists(memcntl "sys/mman.h" HAVE_MEMCNTL)
302+
check_symbol_exists(getlogin unistd.h HAVE_GETLOGIN)
303+
check_symbol_exists(getrusage sys/resource.h HAVE_GETRUSAGE)
304+
check_symbol_exists(gettimeofday sys/time.h HAVE_GETTIMEOFDAY)
305+
check_symbol_exists(getpwnam_r pwd.h HAVE_GETPWNAM_R)
306+
check_symbol_exists(getgrnam_r grp.h HAVE_GETGRNAM_R)
307+
check_symbol_exists(getpwuid_r pwd.h HAVE_GETPWUID_R)
308+
check_symbol_exists(getwd unistd.h HAVE_GETWD)
309+
check_symbol_exists(glob glob.h HAVE_GLOB)
310+
check_symbol_exists(lchown unistd.h HAVE_LCHOWN)
311+
check_symbol_exists(memcntl sys/mman.h HAVE_MEMCNTL)
312312

313313
cmake_push_check_state(RESET)
314314
set(CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
315-
check_symbol_exists(memfd_create "sys/mman.h" HAVE_MEMFD_CREATE)
315+
check_symbol_exists(memfd_create sys/mman.h HAVE_MEMFD_CREATE)
316316
cmake_pop_check_state()
317317

318-
check_symbol_exists(mkstemp "stdlib.h" HAVE_MKSTEMP)
319-
check_symbol_exists(mmap "sys/mman.h" HAVE_MMAP)
320-
check_symbol_exists(nice "unistd.h" HAVE_NICE)
321-
check_symbol_exists(nl_langinfo "langinfo.h" HAVE_NL_LANGINFO)
322-
check_symbol_exists(prctl "sys/prctl.h" HAVE_PRCTL)
323-
check_symbol_exists(procctl "sys/procctl.h" HAVE_PROCCTL)
324-
check_symbol_exists(poll "poll.h" HAVE_POLL)
318+
check_symbol_exists(mkstemp stdlib.h HAVE_MKSTEMP)
319+
check_symbol_exists(mmap sys/mman.h HAVE_MMAP)
320+
check_symbol_exists(nice unistd.h HAVE_NICE)
321+
check_symbol_exists(nl_langinfo langinfo.h HAVE_NL_LANGINFO)
322+
check_symbol_exists(prctl sys/prctl.h HAVE_PRCTL)
323+
check_symbol_exists(procctl sys/procctl.h HAVE_PROCCTL)
324+
check_symbol_exists(poll poll.h HAVE_POLL)
325325
check_symbol_exists(
326326
pthread_jit_write_protect_np
327-
"pthread.h"
327+
pthread.h
328328
HAVE_PTHREAD_JIT_WRITE_PROTECT_NP
329329
)
330-
check_symbol_exists(putenv "stdlib.h" HAVE_PUTENV)
331-
check_symbol_exists(scandir "dirent.h" HAVE_SCANDIR)
332-
check_symbol_exists(setitimer "sys/time.h" HAVE_SETITIMER)
333-
check_symbol_exists(setenv "stdlib.h" HAVE_SETENV)
334-
check_symbol_exists(sigprocmask "signal.h" HAVE_SIGPROCMASK)
330+
check_symbol_exists(putenv stdlib.h HAVE_PUTENV)
331+
check_symbol_exists(scandir dirent.h HAVE_SCANDIR)
332+
check_symbol_exists(setitimer sys/time.h HAVE_SETITIMER)
333+
check_symbol_exists(setenv stdlib.h HAVE_SETENV)
334+
check_symbol_exists(sigprocmask signal.h HAVE_SIGPROCMASK)
335335

336336
# Check for statfs().
337337
block()
@@ -349,39 +349,39 @@ block()
349349
check_symbol_exists(statfs "${headers}" HAVE_STATFS)
350350
endblock()
351351

352-
check_symbol_exists(statvfs "sys/statvfs.h" HAVE_STATVFS)
353-
check_symbol_exists(std_syslog "sys/syslog.h" HAVE_STD_SYSLOG)
354-
check_symbol_exists(strcasecmp "strings.h" HAVE_STRCASECMP)
355-
check_symbol_exists(strnlen "string.h" HAVE_STRNLEN)
356-
check_symbol_exists(symlink "unistd.h" HAVE_SYMLINK)
357-
check_symbol_exists(tzset "time.h" HAVE_TZSET)
358-
check_symbol_exists(unsetenv "stdlib.h" HAVE_UNSETENV)
359-
check_symbol_exists(usleep "unistd.h" HAVE_USLEEP)
360-
check_symbol_exists(utime "utime.h" HAVE_UTIME)
352+
check_symbol_exists(statvfs sys/statvfs.h HAVE_STATVFS)
353+
check_symbol_exists(std_syslog sys/syslog.h HAVE_STD_SYSLOG)
354+
check_symbol_exists(strcasecmp strings.h HAVE_STRCASECMP)
355+
check_symbol_exists(strnlen string.h HAVE_STRNLEN)
356+
check_symbol_exists(symlink unistd.h HAVE_SYMLINK)
357+
check_symbol_exists(tzset time.h HAVE_TZSET)
358+
check_symbol_exists(unsetenv stdlib.h HAVE_UNSETENV)
359+
check_symbol_exists(usleep unistd.h HAVE_USLEEP)
360+
check_symbol_exists(utime utime.h HAVE_UTIME)
361361

362362
cmake_push_check_state(RESET)
363363
set(CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
364-
check_symbol_exists(vasprintf "stdio.h" HAVE_VASPRINTF)
364+
check_symbol_exists(vasprintf stdio.h HAVE_VASPRINTF)
365365
cmake_pop_check_state()
366366

367367
cmake_push_check_state(RESET)
368368
set(CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
369-
check_symbol_exists(asprintf "stdio.h" HAVE_ASPRINTF)
369+
check_symbol_exists(asprintf stdio.h HAVE_ASPRINTF)
370370
cmake_pop_check_state()
371371

372372
cmake_push_check_state(RESET)
373373
set(CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
374-
check_symbol_exists(memmem "string.h" HAVE_MEMMEM)
374+
check_symbol_exists(memmem string.h HAVE_MEMMEM)
375375
cmake_pop_check_state()
376376

377377
cmake_push_check_state(RESET)
378378
set(CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
379-
check_symbol_exists(memrchr "string.h" HAVE_MEMRCHR)
379+
check_symbol_exists(memrchr string.h HAVE_MEMRCHR)
380380
cmake_pop_check_state()
381381

382-
check_symbol_exists(strlcat "string.h" HAVE_STRLCAT)
383-
check_symbol_exists(strlcpy "string.h" HAVE_STRLCPY)
384-
check_symbol_exists(explicit_bzero "string.h" HAVE_EXPLICIT_BZERO)
382+
check_symbol_exists(strlcat string.h HAVE_STRLCAT)
383+
check_symbol_exists(strlcpy string.h HAVE_STRLCPY)
384+
check_symbol_exists(explicit_bzero string.h HAVE_EXPLICIT_BZERO)
385385

386386
# Check reentrant functions.
387387
include(PHP/CheckReentrantFunctions)
@@ -448,12 +448,12 @@ include(PHP/CheckFlushIo)
448448

449449
if(HAVE_ALLOCA_H)
450450
# Most *.nix systems.
451-
check_symbol_exists(alloca "alloca.h" HAVE_ALLOCA)
451+
check_symbol_exists(alloca alloca.h HAVE_ALLOCA)
452452
elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
453-
check_symbol_exists(alloca "malloc.h" HAVE_ALLOCA)
453+
check_symbol_exists(alloca malloc.h HAVE_ALLOCA)
454454
else()
455455
# BSD-based systems.
456-
check_symbol_exists(alloca "stdlib.h" HAVE_ALLOCA)
456+
check_symbol_exists(alloca stdlib.h HAVE_ALLOCA)
457457
endif()
458458

459459
message(CHECK_START "Checking whether the compiler supports __alignof__")

cmake/ext/fileinfo/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,15 @@ include(PHP/CheckSysMacros)
9191
# The strcasestr is missing on Windows and Solaris <= 10 (Solaris 11 has it).
9292
cmake_push_check_state(RESET)
9393
set(CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
94-
check_symbol_exists(strcasestr "string.h" HAVE_STRCASESTR)
94+
check_symbol_exists(strcasestr string.h HAVE_STRCASESTR)
9595
cmake_pop_check_state()
9696
if(NOT HAVE_STRCASESTR)
9797
message(STATUS "Using libmagic strcasestr implementation")
9898
target_sources(php_ext_fileinfo PRIVATE libmagic/strcasestr.c)
9999
endif()
100100

101-
check_symbol_exists(strndup "string.h" HAVE_STRNDUP)
102-
check_symbol_exists(utimes "sys/time.h" HAVE_UTIMES)
101+
check_symbol_exists(strndup string.h HAVE_STRNDUP)
102+
check_symbol_exists(utimes sys/time.h HAVE_UTIMES)
103103

104104
php_check_function_attribute(visibility HAVE_VISIBILITY)
105105

cmake/ext/pcntl/CMakeLists.txt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ target_compile_definitions(php_ext_pcntl PRIVATE ZEND_ENABLE_STATIC_TSRMLS_CACHE
8383

8484
# Check for required functions.
8585
block()
86-
check_symbol_exists(fork "unistd.h" HAVE_FORK)
87-
check_symbol_exists(sigaction "signal.h" HAVE_SIGACTION)
88-
check_symbol_exists(waitpid "sys/wait.h" HAVE_WAITPID)
86+
check_symbol_exists(fork unistd.h HAVE_FORK)
87+
check_symbol_exists(sigaction signal.h HAVE_SIGACTION)
88+
check_symbol_exists(waitpid sys/wait.h HAVE_WAITPID)
8989

9090
foreach(function fork sigaction waitpid)
9191
string(TOUPPER ${function} const)
@@ -98,18 +98,18 @@ block()
9898
endforeach()
9999
endblock()
100100

101-
check_symbol_exists(forkx "sys/fork.h" HAVE_FORKX)
102-
check_symbol_exists(getpriority "sys/resource.h" HAVE_GETPRIORITY)
103-
check_symbol_exists(rfork "unistd.h" HAVE_RFORK)
104-
check_symbol_exists(setpriority "sys/resource.h" HAVE_SETPRIORITY)
105-
check_symbol_exists(sigtimedwait "signal.h" HAVE_SIGTIMEDWAIT)
106-
check_symbol_exists(sigwaitinfo "signal.h" HAVE_SIGWAITINFO)
101+
check_symbol_exists(forkx sys/fork.h HAVE_FORKX)
102+
check_symbol_exists(getpriority sys/resource.h HAVE_GETPRIORITY)
103+
check_symbol_exists(rfork unistd.h HAVE_RFORK)
104+
check_symbol_exists(setpriority sys/resource.h HAVE_SETPRIORITY)
105+
check_symbol_exists(sigtimedwait signal.h HAVE_SIGTIMEDWAIT)
106+
check_symbol_exists(sigwaitinfo signal.h HAVE_SIGWAITINFO)
107107
cmake_push_check_state(RESET)
108108
set(CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
109-
check_symbol_exists(unshare "sched.h" HAVE_UNSHARE)
109+
check_symbol_exists(unshare sched.h HAVE_UNSHARE)
110110
cmake_pop_check_state()
111-
check_symbol_exists(wait3 "sys/wait.h" HAVE_WAIT3)
112-
check_symbol_exists(wait4 "sys/wait.h" HAVE_WAIT4)
111+
check_symbol_exists(wait3 sys/wait.h HAVE_WAIT3)
112+
check_symbol_exists(wait4 sys/wait.h HAVE_WAIT4)
113113

114114
cmake_push_check_state(RESET)
115115
set(CMAKE_EXTRA_INCLUDE_FILES "signal.h")

cmake/ext/pdo_pgsql/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ if(TARGET PostgreSQL::PostgreSQL)
9191
set(CMAKE_REQUIRED_LIBRARIES PostgreSQL::PostgreSQL)
9292

9393
# PostgreSQL library minimum version sanity check.
94-
check_symbol_exists(PQlibVersion "libpq-fe.h" _PHP_LIBPQ_CHECK)
94+
check_symbol_exists(PQlibVersion libpq-fe.h _PHP_LIBPQ_CHECK)
9595
if(NOT _PHP_LIBPQ_CHECK)
9696
message(
9797
FATAL_ERROR

cmake/ext/pgsql/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ if(TARGET PostgreSQL::PostgreSQL)
9191
set(CMAKE_REQUIRED_LIBRARIES PostgreSQL::PostgreSQL)
9292

9393
# PostgreSQL library minimum version sanity check.
94-
check_symbol_exists(PQlibVersion "libpq-fe.h" _PHP_LIBPQ_CHECK)
94+
check_symbol_exists(PQlibVersion libpq-fe.h _PHP_LIBPQ_CHECK)
9595
if(NOT _PHP_LIBPQ_CHECK)
9696
message(
9797
FATAL_ERROR
@@ -102,19 +102,19 @@ if(TARGET PostgreSQL::PostgreSQL)
102102

103103
check_symbol_exists(
104104
pg_encoding_to_char
105-
"libpq-fe.h"
105+
libpq-fe.h
106106
HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT
107107
)
108108

109109
check_symbol_exists(
110110
lo_truncate64
111-
"libpq-fe.h"
111+
libpq-fe.h
112112
HAVE_PG_LO64
113113
)
114114

115115
check_symbol_exists(
116116
PQsetErrorContextVisibility
117-
"libpq-fe.h"
117+
libpq-fe.h
118118
HAVE_PG_CONTEXT_VISIBILITY
119119
)
120120
cmake_pop_check_state()

cmake/ext/posix/CMakeLists.txt

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,16 @@ target_sources(
7575

7676
target_compile_definitions(php_ext_posix PRIVATE ZEND_ENABLE_STATIC_TSRMLS_CACHE)
7777

78-
check_symbol_exists(ctermid "stdio.h" HAVE_CTERMID)
78+
check_symbol_exists(ctermid stdio.h HAVE_CTERMID)
7979
cmake_push_check_state(RESET)
8080
set(CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
81-
check_symbol_exists(eaccess "unistd.h" HAVE_EACCESS)
81+
check_symbol_exists(eaccess unistd.h HAVE_EACCESS)
8282
cmake_pop_check_state()
83-
check_symbol_exists(getgrgid_r "grp.h" HAVE_GETGRGID_R)
84-
check_symbol_exists(getgroups "unistd.h" HAVE_GETGROUPS)
85-
check_symbol_exists(getpgid "unistd.h" HAVE_GETPGID)
86-
check_symbol_exists(getrlimit "sys/resource.h" HAVE_GETRLIMIT)
87-
check_symbol_exists(getsid "unistd.h" HAVE_GETSID)
83+
check_symbol_exists(getgrgid_r grp.h HAVE_GETGRGID_R)
84+
check_symbol_exists(getgroups unistd.h HAVE_GETGROUPS)
85+
check_symbol_exists(getpgid unistd.h HAVE_GETPGID)
86+
check_symbol_exists(getrlimit sys/resource.h HAVE_GETRLIMIT)
87+
check_symbol_exists(getsid unistd.h HAVE_GETSID)
8888

8989
# BSD-based systems have initgroups in unistd.h but still have grp.h file.
9090
block()
@@ -101,20 +101,20 @@ block()
101101
check_symbol_exists(initgroups "${headers}" HAVE_INITGROUPS)
102102
endblock()
103103

104-
check_symbol_exists(mkfifo "sys/stat.h" HAVE_MKFIFO)
105-
check_symbol_exists(mknod "sys/stat.h" HAVE_MKNOD)
104+
check_symbol_exists(mkfifo sys/stat.h HAVE_MKFIFO)
105+
check_symbol_exists(mknod sys/stat.h HAVE_MKNOD)
106106

107107
# Skip pathconf and fpathconf check on musl libc due to limited implementation
108108
# (first argument is not validated and has different error).
109109
if(NOT PHP_C_STANDARD_LIBRARY STREQUAL "musl")
110-
check_symbol_exists(pathconf "unistd.h" HAVE_PATHCONF)
111-
check_symbol_exists(fpathconf "unistd.h" HAVE_FPATHCONF)
110+
check_symbol_exists(pathconf unistd.h HAVE_PATHCONF)
111+
check_symbol_exists(fpathconf unistd.h HAVE_FPATHCONF)
112112
endif()
113113

114-
check_symbol_exists(setegid "unistd.h" HAVE_SETEGID)
115-
check_symbol_exists(seteuid "unistd.h" HAVE_SETEUID)
116-
check_symbol_exists(setrlimit "sys/resource.h" HAVE_SETRLIMIT)
117-
check_symbol_exists(setsid "unistd.h" HAVE_SETSID)
114+
check_symbol_exists(setegid unistd.h HAVE_SETEGID)
115+
check_symbol_exists(seteuid unistd.h HAVE_SETEUID)
116+
check_symbol_exists(setrlimit sys/resource.h HAVE_SETRLIMIT)
117+
check_symbol_exists(setsid unistd.h HAVE_SETSID)
118118

119119
# Check for major, minor, and makedev.
120120
include(PHP/CheckSysMacros)

cmake/ext/sockets/CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,15 @@ cmake_push_check_state(RESET)
9696
check_symbol_exists(hstrerror "netdb.h;sys/socket.h" HAVE_HSTRERROR)
9797
cmake_pop_check_state()
9898

99-
check_symbol_exists(if_nametoindex "net/if.h" HAVE_IF_NAMETOINDEX)
100-
check_symbol_exists(if_indextoname "net/if.h" HAVE_IF_INDEXTONAME)
101-
check_symbol_exists(sockatmark "sys/socket.h" HAVE_SOCKATMARK)
102-
check_symbol_exists(AI_V4MAPPED "netdb.h" HAVE_AI_V4MAPPED)
103-
check_symbol_exists(AI_ALL "netdb.h" HAVE_AI_ALL)
99+
check_symbol_exists(if_nametoindex net/if.h HAVE_IF_NAMETOINDEX)
100+
check_symbol_exists(if_indextoname net/if.h HAVE_IF_INDEXTONAME)
101+
check_symbol_exists(sockatmark sys/socket.h HAVE_SOCKATMARK)
102+
check_symbol_exists(AI_V4MAPPED netdb.h HAVE_AI_V4MAPPED)
103+
check_symbol_exists(AI_ALL netdb.h HAVE_AI_ALL)
104104

105105
cmake_push_check_state(RESET)
106106
set(CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
107-
check_symbol_exists(AI_IDN "netdb.h" HAVE_AI_IDN)
107+
check_symbol_exists(AI_IDN netdb.h HAVE_AI_IDN)
108108
cmake_pop_check_state()
109109

110110
check_include_files(sys/sockio.h HAVE_SYS_SOCKIO_H)

0 commit comments

Comments
 (0)