mirror of
https://github.com/neocturne/fastd.git
synced 2025-05-15 04:35:08 +02:00
Move _GNU_SOURCE definition to CMake
This commit is contained in:
parent
3467e5133a
commit
c850180a47
2 changed files with 1 additions and 3 deletions
|
@ -37,7 +37,7 @@ add_executable(fastd
|
|||
${BISON_fastd_config_parse_OUTPUTS}
|
||||
${METHODS}
|
||||
)
|
||||
set_target_properties(fastd PROPERTIES COMPILE_FLAGS -pthread ${UECC_CFLAGS_OTHER} LINK_FLAGS -pthread ${UECC_LDFLAGS_OTHER})
|
||||
set_target_properties(fastd PROPERTIES COMPILE_FLAGS -pthread ${UECC_CFLAGS_OTHER} COMPILE_DEFINITIONS _GNU_SOURCE LINK_FLAGS -pthread ${UECC_LDFLAGS_OTHER})
|
||||
target_link_libraries(fastd rt ${CAP_LIBRARY} ${UECC_LIBRARIES} ${NACL_LIBRARY})
|
||||
|
||||
add_custom_target(
|
||||
|
|
|
@ -33,8 +33,6 @@
|
|||
#ifndef _FASTD_TYPES_H_
|
||||
#define _FASTD_TYPES_H_
|
||||
|
||||
#define _GNU_SOURCE
|
||||
|
||||
#include <config.h>
|
||||
#include <version.h>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue