gethostname() is more a BSD feature than an XOPEN one.
authorRichard Levitte <levitte@openssl.org>
Wed, 4 Dec 2002 22:48:01 +0000 (22:48 +0000)
committerRichard Levitte <levitte@openssl.org>
Wed, 4 Dec 2002 22:48:01 +0000 (22:48 +0000)
PR: 379

ssl/ssltest.c

index 978516f..8ff0762 100644 (file)
  * 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).