core-config: Fix header detection and conflict.

- Fixed `sys/stat.h` detection.
- Fixed `HAVE_PTHREAD_H` define to avoid warning with Python includes.
- Added missing quotes for the semaphore include check.
This commit is contained in:
Pierre Wendling
2022-03-31 20:37:48 -04:00
parent f5de69a424
commit 7b24d1fafb
2 changed files with 3 additions and 3 deletions

View File

@@ -15,7 +15,7 @@
#cmakedefine01 HAVE_STDLIB_H
#cmakedefine01 HAVE_GETENV
#cmakedefine01 HAVE_SIGNAL_H
#cmakedefine HAVE_PTHREAD_H
#cmakedefine01 HAVE_PTHREAD_H
#cmakedefine HAVE_RT
#endif //NS3_CORE_CONFIG_H

View File

@@ -1066,12 +1066,12 @@ macro(process_options)
check_include_file_cxx("stdint.h" "HAVE_STDINT_H")
check_include_file_cxx("inttypes.h" "HAVE_INTTYPES_H")
check_include_file_cxx("sys/types.h" "HAVE_SYS_TYPES_H")
check_include_file_cxx("stat.h" "HAVE_SYS_STAT_H")
check_include_file_cxx("sys/stat.h" "HAVE_SYS_STAT_H")
check_include_file_cxx("dirent.h" "HAVE_DIRENT_H")
check_include_file_cxx("stdlib.h" "HAVE_STDLIB_H")
check_include_file_cxx("signal.h" "HAVE_SIGNAL_H")
check_include_file_cxx("netpacket/packet.h" "HAVE_PACKETH")
check_include_file_cxx(semaphore.h HAVE_SEMAPHORE_H)
check_include_file_cxx("semaphore.h" "HAVE_SEMAPHORE_H")
check_function_exists("getenv" "HAVE_GETENV")
configure_file(