projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdc2bbc
)
Make as sure as possible that gethostname() will be properly declared.
author
Richard Levitte
<levitte@openssl.org>
Tue, 31 Jul 2001 08:50:20 +0000
(08:50 +0000)
committer
Richard Levitte
<levitte@openssl.org>
Tue, 31 Jul 2001 08:50:20 +0000
(08:50 +0000)
ssl/ssltest.c
patch
|
blob
|
history
diff --git
a/ssl/ssltest.c
b/ssl/ssltest.c
index 0960c1acbcbddbb6ea000b74baa694fa41ac15c1..7d1249fd5cf01ae10c0eca750cea3c261809eac9 100644
(file)
--- a/
ssl/ssltest.c
+++ b/
ssl/ssltest.c
@@
-109,6
+109,12
@@
*
*/
+#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>
@@
-130,6
+136,8
@@
#ifdef OPENSSL_SYS_WINDOWS
#include <winsock.h>
#include "../crypto/bio/bss_file.c"
+#else
+#include OPENSSL_UNISTD
#endif
#ifdef OPENSSL_SYS_VMS