diff --git a/ssl/ssltest.c b/ssl/ssltest.c index e384599fb17b35b71e91497529f7dfc621b29b1b..fc27f018d1584094e06eb7731aad4c9eb194327b 100644 --- a/ssl/ssltest.c +++ b/ssl/ssltest.c @@ -116,9 +116,6 @@ #define _BSD_SOURCE 1 /* Or gethostname won't be declared properly on Linux and GNU platforms. */ -#define _XOPEN_SOURCE_EXTENDED 1 /* Or gethostname won't be declared properly - on Compaq platforms (at least with DEC C). - */ #include #include @@ -139,6 +136,13 @@ #include #include #include + +#define _XOPEN_SOURCE_EXTENDED 1 /* Or gethostname won't be declared properly + on Compaq platforms (at least with DEC C). + Do not try to put it earlier, or IPv6 includes + get screwed... + */ + #ifdef OPENSSL_SYS_WINDOWS #include #include "../crypto/bio/bss_file.c"