aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-14 18:45:30 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-14 18:45:30 -0400
commit2a080063a6d62d4f26b1fc9f1ec671bd184c3eac (patch)
tree2fa18d4d42b84ab427ba52c0f3e19edb10adb9e7 /src
parente69534cbd65d8739cdfb67b5b1a5161236c7361e (diff)
Add compiler flag for -D_BSD_SOURCE
Diffstat (limited to 'src')
-rw-r--r--src/tomo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tomo.c b/src/tomo.c
index 67a648d1..523e0b9d 100644
--- a/src/tomo.c
+++ b/src/tomo.c
@@ -62,6 +62,9 @@ static OptionalText_t
cflags = Text("-Werror -fdollars-in-identifiers -std=c2x -Wno-trigraphs -Wno-parentheses-equality "
" -fno-signed-zeros -fno-finite-math-only "
" -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -fPIC -ggdb"
+#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__)
+ " -D_BSD_SOURCE"
+#endif
" -DGC_THREADS"
" -I$HOME/.local/include -I$HOME/.local/share/tomo/installed -I/usr/local/include"),
ldlibs = Text("-lgc -lm -lgmp -lunistring -lbacktrace -ltomo"),