summaryrefslogtreecommitdiff
path: root/driver_zodiac.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver_zodiac.c')
-rw-r--r--driver_zodiac.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/driver_zodiac.c b/driver_zodiac.c
index b9fa5522..b4c38b01 100644
--- a/driver_zodiac.c
+++ b/driver_zodiac.c
@@ -16,9 +16,12 @@
/* if we insisnt on C99, then we need this to get M_LN2 from math.h */
/* 500 means X/Open 1995 */
#define _XOPEN_SOURCE 500
+#endif /* __linux__ */
+
+#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 200112L
/* round() needs _POSIX_C_SOURCE >= 200112L */
#define _POSIX_C_SOURCE 200112L
-#endif /* __linux__ */
+#endif
#include <stdio.h>