Fixes to get -ansi working
[oweals/openssl.git] / test / ssltest_old.c
index f7db91c31db29f30d963cf4672376251658dd346..bc73380146fefb3e297cce54dc6228b42589552b 100644 (file)
  */
 
 /* 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>