summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-06-08 20:10:50 +0100
committerMatt Caswell <matt@openssl.org>2016-06-08 20:18:04 +0100
commit2a7de0fd5d9baf946ef4d2c51096b04dd47a8143 (patch)
tree72bc90447027945e17151a0ae8809b7ce4fe1b5b /test
parente417070c9f2162594e8289aed93bd5801e70e60d (diff)
Fixes to get -ansi working
Various fixes to get the following to compile: ./config no-asm -ansi -D_DEFAULT_SOURCE RT4479 RT4480 Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'test')
-rw-r--r--test/ssltest_old.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/ssltest_old.c b/test/ssltest_old.c
index f7db91c31d..bc73380146 100644
--- a/test/ssltest_old.c
+++ b/test/ssltest_old.c
@@ -40,8 +40,12 @@
*/
/* Or gethostname won't be declared properly on Linux and GNU platforms. */
-#define _BSD_SOURCE 1
-#define _DEFAULT_SOURCE 1
+#ifndef _BSD_SOURCE
+# define _BSD_SOURCE 1
+#endif
+#ifndef _DEFAULT_SOURCE
+# define _DEFAULT_SOURCE 1
+#endif
#include <assert.h>
#include <errno.h>