From: Richard Levitte Date: Wed, 4 Dec 2002 22:48:10 +0000 (+0000) Subject: gethostname() is more a BSD feature than an XOPEN one. X-Git-Tag: OpenSSL_0_9_7-beta5~12 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a0ed612fef7b2e97d442af7e15fb3f9f11346637;p=oweals%2Fopenssl.git gethostname() is more a BSD feature than an XOPEN one. PR: 379 --- diff --git a/ssl/ssltest.c b/ssl/ssltest.c index d12bf653e1..fccab9a2ce 100644 --- a/ssl/ssltest.c +++ b/ssl/ssltest.c @@ -109,7 +109,7 @@ * */ -#define _XOPEN_SOURCE 600 /* Or gethostname won't be declared properly +#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).