aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2010-01-24 16:57:20 +0000
committerDr. Stephen Henson <steve@openssl.org>2010-01-24 16:57:20 +0000
commitbc120a54c9268ac37ede72aa88ed49ac6dbd4403 (patch)
tree31f8280e63d9b187bf81fd43a95b5ceb6330c63e
parent82a66ce31374107282edad6d099194707af2d730 (diff)
downloadopenssl-bc120a54c9268ac37ede72aa88ed49ac6dbd4403.tar.gz
PR: 2153, 2125
Submitted by: steve@openssl.org The original fix for PR#2125 broke compilation on some Unixware platforms: revert and make conditional on VMS.
-rw-r--r--ssl/ssltest.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/ssl/ssltest.c b/ssl/ssltest.c
index 79735126fc..abf214ad7f 100644
--- a/ssl/ssltest.c
+++ b/ssl/ssltest.c
@@ -143,9 +143,6 @@
#define _BSD_SOURCE 1 /* Or gethostname won't be declared properly
on Linux and GNU platforms. */
-#define _XOPEN_SOURCE 500 /* Or isascii won't be declared properly on
- VMS (at least with DECompHP C). */
-
#include <assert.h>
#include <errno.h>
#include <limits.h>
@@ -157,6 +154,11 @@
#define USE_SOCKETS
#include "e_os.h"
+#ifdef OPENSSL_SYS_VMS
+#define _XOPEN_SOURCE 500 /* Or isascii won't be declared properly on
+ VMS (at least with DECompHP C). */
+#endif
+
#include <ctype.h>
#include <openssl/bio.h>