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

ssl/ssltest.c

index d12bf653e1be48badec978051d563f95da2c34cf..fccab9a2cef3dd692a23e1ace64023774a96b644 100644 (file)
  *
  */
 
-#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).