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 978516f1b7b9bbdf7d04d31f52c29fac46d02e9a..8ff076250f27970b1f3e4bbddbb53d8ca47fdc12 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).