Make as sure as possible that gethostname() will be properly declared.
This commit is contained in:
parent
fdc2bbcacb
commit
3728974460
@ -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 <assert.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
@ -130,6 +136,8 @@
|
|||||||
#ifdef OPENSSL_SYS_WINDOWS
|
#ifdef OPENSSL_SYS_WINDOWS
|
||||||
#include <winsock.h>
|
#include <winsock.h>
|
||||||
#include "../crypto/bio/bss_file.c"
|
#include "../crypto/bio/bss_file.c"
|
||||||
|
#else
|
||||||
|
#include OPENSSL_UNISTD
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef OPENSSL_SYS_VMS
|
#ifdef OPENSSL_SYS_VMS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user