From: Richard Levitte Date: Tue, 31 Jul 2001 08:50:20 +0000 (+0000) Subject: Make as sure as possible that gethostname() will be properly declared. X-Git-Tag: OpenSSL_0_9_6c~147^2~42 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3728974460717c4523d2d81508d8aeb87e7f61b8;p=oweals%2Fopenssl.git Make as sure as possible that gethostname() will be properly declared. --- 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