diff options
Diffstat (limited to 'src/unitd/CMakeLists.txt')
-rw-r--r-- | src/unitd/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unitd/CMakeLists.txt b/src/unitd/CMakeLists.txt index 6ef73f6..e07528b 100644 --- a/src/unitd/CMakeLists.txt +++ b/src/unitd/CMakeLists.txt @@ -1,6 +1,6 @@ add_executable(unitd unitd.c signal.c watchdog.c state.c askconsole.c ubus.c system.c early.c service/service.c service/instance.c utils.c) -set_property(TARGET unitd PROPERTY COMPILE_FLAGS "-std=gnu99 -Wall ${JSON_C_CFLAGS_OTHER}") +set_property(TARGET unitd PROPERTY COMPILE_FLAGS "-std=gnu99 -Wall -D_GNU_SOURCE ${JSON_C_CFLAGS_OTHER}") set_property(TARGET unitd PROPERTY LINK_FLAGS "${JSON_C_LDFLAGS_OTHER}") set_property(TARGET unitd PROPERTY INCLUDE_DIRECTORIES ${JSON_C_INCLUDE_DIR}) target_link_libraries(unitd ubox ubus blobmsg_json ${JSON_C_LIBRARIES}) |