File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -315,7 +315,9 @@ endif()
315315
316316# Check symbols
317317check_symbol_exists(fork "unistd.h" HAVE_DECL_FORK)
318+ list (APPEND CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
318319check_symbol_exists(pipe2 "unistd.h" HAVE_DECL_PIPE2)
320+ list (REMOVE_ITEM CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
319321check_symbol_exists(setsid "unistd.h" HAVE_DECL_SETSID)
320322
321323check_symbol_exists(le16toh "${ENDIAN_INCLUDES} " HAVE_DECL_LE16TOH)
Original file line number Diff line number Diff line change 3434#cmakedefine HAVE_SYS_ENDIAN_H
3535#cmakedefine HAVE_SYS_PRCTL_H
3636
37+ #cmakedefine01 HAVE_DECL_FORK
38+ #cmakedefine01 HAVE_DECL_PIPE2
39+ #cmakedefine01 HAVE_DECL_SETSID
40+
3741#cmakedefine01 HAVE_DECL_LE16TOH
3842#cmakedefine01 HAVE_DECL_LE32TOH
3943#cmakedefine01 HAVE_DECL_LE64TOH
You can’t perform that action at this time.
0 commit comments