Move _GNU_SOURCE definition to CMake

This commit is contained in:
Matthias Schiffer 2013-08-07 00:51:21 +02:00
parent 3467e5133a
commit c850180a47
2 changed files with 1 additions and 3 deletions

View file

@ -37,7 +37,7 @@ add_executable(fastd
${BISON_fastd_config_parse_OUTPUTS} ${BISON_fastd_config_parse_OUTPUTS}
${METHODS} ${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}) target_link_libraries(fastd rt ${CAP_LIBRARY} ${UECC_LIBRARIES} ${NACL_LIBRARY})
add_custom_target( add_custom_target(

View file

@ -33,8 +33,6 @@
#ifndef _FASTD_TYPES_H_ #ifndef _FASTD_TYPES_H_
#define _FASTD_TYPES_H_ #define _FASTD_TYPES_H_
#define _GNU_SOURCE
#include <config.h> #include <config.h>
#include <version.h> #include <version.h>