aboutsummaryrefslogtreecommitdiff
path: root/include/status.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/status.h')
-rw-r--r--include/status.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/status.h b/include/status.h
index 198cf5704a57..242514edb476 100644
--- a/include/status.h
+++ b/include/status.h
@@ -60,6 +60,13 @@
#endif // __FreeBSD__
#endif // BC_TEST_FREEBSD
+// This is used by configure.sh to test for Mac OSX.
+#ifdef BC_TEST_APPLE
+#ifdef __APPLE__
+#error On Mac OSX without _DARWIN_C_SOURCE
+#endif // __APPLE__
+#endif // BC_TEST_APPLE
+
// Windows has deprecated isatty() and the rest of these. Or doesn't have them.
// So these are just fixes for Windows.
#ifdef _WIN32