mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
Fix unnecessary config.h preprocessor (re)definitions.
The CMake-generated config.h would redundantly define some types to themselves, causing lots of warning in some cases (e.g. Xcode build). This addresses #414
This commit is contained in:
parent
050680aa63
commit
c732cef69b
3 changed files with 26 additions and 45 deletions
|
@ -7,9 +7,6 @@ check_function_exists(strerror HAVE_STRERROR)
|
|||
check_function_exists(strsep HAVE_STRSEP)
|
||||
check_function_exists(sigset HAVE_SIGSET)
|
||||
|
||||
if (HAVE_SIGSET)
|
||||
set(SIG_FUNC sigset)
|
||||
else ()
|
||||
set(SIG_FUNC signal)
|
||||
if (NOT HAVE_SIGSET)
|
||||
check_function_exists(sigaction HAVE_SIGACTION)
|
||||
endif ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue