Make as sure as possible that gethostname() will be properly declared.
authorRichard Levitte <levitte@openssl.org>
Tue, 31 Jul 2001 08:50:20 +0000 (08:50 +0000)
committerRichard Levitte <levitte@openssl.org>
Tue, 31 Jul 2001 08:50:20 +0000 (08:50 +0000)
ssl/ssltest.c

index 0960c1acbcbddbb6ea000b74baa694fa41ac15c1..7d1249fd5cf01ae10c0eca750cea3c261809eac9 100644 (file)
  *
  */
 
  *
  */
 
+#define _XOPEN_SOURCE 600      /* Or gethostname won't be declared properly
+                                  on Linux and GNU platforms. */
+#define _XOPEN_SOURCE_EXTENDED /* Or gethostname won't be declared properly
+                                  on Compaq platforms (at least with DEC C).
+                               */
+
 #include <assert.h>
 #include <errno.h>
 #include <limits.h>
 #include <assert.h>
 #include <errno.h>
 #include <limits.h>
 #ifdef OPENSSL_SYS_WINDOWS
 #include <winsock.h>
 #include "../crypto/bio/bss_file.c"
 #ifdef OPENSSL_SYS_WINDOWS
 #include <winsock.h>
 #include "../crypto/bio/bss_file.c"
+#else
+#include OPENSSL_UNISTD
 #endif
 
 #ifdef OPENSSL_SYS_VMS
 #endif
 
 #ifdef OPENSSL_SYS_VMS