From 3728974460717c4523d2d81508d8aeb87e7f61b8 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Tue, 31 Jul 2001 08:50:20 +0000 Subject: [PATCH] Make as sure as possible that gethostname() will be properly declared. --- ssl/ssltest.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.25.1