diff --git a/ssl/ssltest.c b/ssl/ssltest.c index 0960c1acbc..7d1249fd5c 100644 --- a/ssl/ssltest.c +++ b/ssl/ssltest.c @@ -109,6 +109,12 @@ * */ +#define _XOPEN_SOURCE 600 /* Or gethostname won't be declared properly + on Linux and GNU platforms. */ +#define _XOPEN_SOURCE_EXTENDED /* Or gethostname won't be declared properly + on Compaq platforms (at least with DEC C). + */ + #include #include #include @@ -130,6 +136,8 @@ #ifdef OPENSSL_SYS_WINDOWS #include #include "../crypto/bio/bss_file.c" +#else +#include OPENSSL_UNISTD #endif #ifdef OPENSSL_SYS_VMS