From 14647b2a38fb48d5328df1dc11cc8d00b0caa9c3 Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Sun, 2 Feb 2025 21:33:18 +0100 Subject: [PATCH] build: add a comment explaining why we undef _POSIX_C_SOURCE --- lib/src/query.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/src/query.c b/lib/src/query.c index 6293bd9f..eb4e906c 100644 --- a/lib/src/query.c +++ b/lib/src/query.c @@ -1,3 +1,8 @@ +/* + * On NetBSD, defining standard requirements like this removes symbols + * from the namespace; however, we need non-standard symbols for + * endian.h. + */ #if defined(__NetBSD__) && defined(_POSIX_C_SOURCE) #undef _POSIX_C_SOURCE #endif