summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/copyrecttest.c2
-rw-r--r--test/encodingstest.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/test/copyrecttest.c b/test/copyrecttest.c
index 1986f72..5521595 100644
--- a/test/copyrecttest.c
+++ b/test/copyrecttest.c
@@ -1,4 +1,6 @@
+#ifdef __STRICT_ANSI__
#define _BSD_SOURCE
+#endif
#include <rfb/rfb.h>
#include <math.h>
diff --git a/test/encodingstest.c b/test/encodingstest.c
index 5f84a5b..821b2ae 100644
--- a/test/encodingstest.c
+++ b/test/encodingstest.c
@@ -1,4 +1,6 @@
+#ifdef __STRICT_ANSI__
#define _BSD_SOURCE
+#endif
#include <time.h>
#include <stdarg.h>
#include <rfb/rfb.h>