commit 47c8e627f4af4f1bb5fde926472dadbd540e2920
parent f429ebe34d95a682d5ea8f2f3f5ac5812f0fd6c1
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sat, 21 Aug 2021 17:01:41 +0200
build: help Haiku find the header files that define mkstemps()
The documentation (https://www.haiku-os.org/docs/api/libroot.html)
says that BSD extensions are enabled by default, but somehow this
does not seem to be the case on my system. With _DEFAULT_SOURCE
defined, though, src/files.c now compiles fine.
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/definitions.h b/src/definitions.h
@@ -29,6 +29,10 @@
#endif
#endif
+#if defined(__HAIKU__) && !defined(_DEFAULT_SOURCE)
+#define _DEFAULT_SOURCE 1
+#endif
+
#ifdef __TANDEM
/* Tandem NonStop Kernel support. */
#include <floss.h>