Skip to content

Commit 110e219

Browse files
committed
Sync pcntl macros
1 parent 3d9524a commit 110e219

File tree

2 files changed

+43
-10
lines changed

2 files changed

+43
-10
lines changed

cmake/ext/pcntl/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,18 @@ block()
6262
endforeach()
6363
endblock()
6464

65+
check_symbol_exists(forkx "sys/fork.h" HAVE_FORKX)
6566
check_symbol_exists(getpriority "sys/resource.h" HAVE_GETPRIORITY)
67+
check_symbol_exists(rfork "unistd.h" HAVE_RFORK)
6668
check_symbol_exists(setpriority "sys/resource.h" HAVE_SETPRIORITY)
67-
check_symbol_exists(wait3 "sys/wait.h" HAVE_WAIT3)
68-
check_symbol_exists(wait4 "sys/wait.h" HAVE_WAIT4)
69-
check_symbol_exists(sigwaitinfo "signal.h" HAVE_SIGWAITINFO)
7069
check_symbol_exists(sigtimedwait "signal.h" HAVE_SIGTIMEDWAIT)
70+
check_symbol_exists(sigwaitinfo "signal.h" HAVE_SIGWAITINFO)
7171
cmake_push_check_state(RESET)
7272
set(CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
7373
check_symbol_exists(unshare "sched.h" HAVE_UNSHARE)
7474
cmake_pop_check_state()
75-
check_symbol_exists(rfork "unistd.h" HAVE_RFORK)
76-
check_symbol_exists(forkx "sys/fork.h" HAVE_FORKX)
75+
check_symbol_exists(wait3 "sys/wait.h" HAVE_WAIT3)
76+
check_symbol_exists(wait4 "sys/wait.h" HAVE_WAIT4)
7777

7878
cmake_push_check_state(RESET)
7979
set(CMAKE_EXTRA_INCLUDE_FILES "signal.h")

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

Lines changed: 38 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,12 @@
472472
/* Define to 1 if you have the 'fopencookie' function. */
473473
#cmakedefine HAVE_FOPENCOOKIE 1
474474

475+
/* Define to 1 if you have the 'fork' function. */
476+
#cmakedefine HAVE_FORK 1
477+
478+
/* Define to 1 if you have the 'forkx' function. */
479+
#cmakedefine HAVE_FORKX 1
480+
475481
/* Define to 1 if you have the 'fpathconf' function. */
476482
#cmakedefine HAVE_FPATHCONF 1
477483

@@ -543,6 +549,9 @@
543549
/* Define to 1 if you have the 'getpgid' function. */
544550
#cmakedefine HAVE_GETPGID 1
545551

552+
/* Define to 1 if you have the 'getpriority' function. */
553+
#cmakedefine HAVE_GETPRIORITY 1
554+
546555
#define HAVE_GETPROTOBYNAME 1
547556

548557
#define HAVE_GETPROTOBYNUMBER 1
@@ -760,6 +769,9 @@
760769
/* Define to 1 if OpenSSL crypto library has the 'RAND_egd' function. */
761770
#cmakedefine HAVE_RAND_EGD 1
762771

772+
/* Define to 1 if you have the 'rfork' function. */
773+
#cmakedefine HAVE_RFORK 1
774+
763775
/* Define to 1 if edit/readline library has the 'rl_callback_read_char'
764776
function. */
765777
#cmakedefine HAVE_RL_CALLBACK_READ_CHAR 1
@@ -780,6 +792,9 @@
780792
/* Define to 1 if you have the 'seteuid' function. */
781793
#cmakedefine HAVE_SETEUID 1
782794

795+
/* Define to 1 if you have the 'setpriority' function. */
796+
#cmakedefine HAVE_SETPRIORITY 1
797+
783798
/* Define to 1 if libzip library has the 'zip_file_set_mtime' function
784799
(available since 1.0.0). */
785800
#cmakedefine HAVE_SET_MTIME 1
@@ -803,8 +818,17 @@
803818
/* Define to 1 if you have the 'setsid' function. */
804819
#cmakedefine HAVE_SETSID 1
805820

821+
/* Define to 1 if you have the 'sigaction' function. */
822+
#cmakedefine HAVE_SIGACTION 1
823+
806824
#undef HAVE_SIGSETJMP
807825

826+
/* Define to 1 if you have the 'sigtimedwait' function. */
827+
#cmakedefine HAVE_SIGTIMEDWAIT 1
828+
829+
/* Define to 1 if you have the 'sigwaitinfo' function. */
830+
#cmakedefine HAVE_SIGWAITINFO 1
831+
808832
/* Define to 1 if the odbc extension uses the Solid DB. */
809833
#cmakedefine HAVE_SOLID 1
810834

@@ -925,20 +949,29 @@
925949
/* Define to 1 if the PHP extension 'odbc' is available. */
926950
#cmakedefine HAVE_UODBC 1
927951

928-
/* Define to 1 if you have the 'utimes' function. */
929-
#cmakedefine HAVE_UTIMES 1
930-
931952
#undef HAVE_UNISTD_H
932953

954+
/* Define to 1 if you have the 'unshare' function. */
955+
#cmakedefine HAVE_UNSHARE 1
956+
933957
#define HAVE_USLEEP 1
934958

959+
/* Define to 1 if you have the 'utimes' function. */
960+
#cmakedefine HAVE_UTIMES 1
961+
935962
#define HAVE_UTIME 1
936963

937964
/* Define to 1 if 'domainname' is a member of 'struct utsname'. */
938965
#cmakedefine HAVE_UTSNAME_DOMAINNAME 1
939966

940-
/* have the wspiapi.h header file */
941-
#define HAVE_WSPIAPI_H 1
967+
/* Define to 1 if you have the 'waitpid' function. */
968+
#cmakedefine HAVE_WAITPID 1
969+
970+
/* Define to 1 if you have the 'wait3' function. */
971+
#cmakedefine HAVE_WAIT3 1
972+
973+
/* Define to 1 if you have the 'wait4' function. */
974+
#cmakedefine HAVE_WAIT4 1
942975

943976
/* Define to 1 if the PHP extension 'xml' is available. */
944977
#cmakedefine HAVE_XML 1

0 commit comments

Comments
 (0)