build: add a comment explaining why we undef _POSIX_C_SOURCE

This commit is contained in:
Thomas Klausner 2025-02-02 21:33:18 +01:00 committed by Amaan Qureshi
parent 5311904619
commit 14647b2a38

View file

@ -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