From: Richard Levitte Date: Wed, 4 Dec 2002 22:48:01 +0000 (+0000) Subject: gethostname() is more a BSD feature than an XOPEN one. X-Git-Tag: STATE_before_zlib~21 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4fbe40c54f03a7dbe2f838deda5961456c48c84e;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 978516f1b7..8ff076250f 100644 --- a/ssl/ssltest.c +++ b/ssl/ssltest.c @@ -114,7 +114,7 @@ * SUN MICROSYSTEMS, INC., and contributed to the OpenSSL project. */ -#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).