aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2026-03-25 17:29:32 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2026-03-25 17:29:32 -0400
commit98627fe6fb2c656d98440c244311e7461577326c (patch)
treed9bc16baf309d521236388f9d18adfcd8b716b46
parent13c11bbabcde4f9abc1fa7019d56a76a2550c555 (diff)
downloaddo-98627fe6fb2c656d98440c244311e7461577326c.tar.gz
Compile with _GNU_SOURCE enabled
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5d52b76..6a26303 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,6 +3,7 @@ project(do C)
set(CMAKE_C_STANDARD 99)
set(ASAN "Enable address analyzer" OFF)
+add_compile_definitions(_GNU_SOURCE)
if (ASAN)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=address \