* net.cc: Use gethostname define from winsock2.h.

This commit is contained in:
Christopher Faylor
2003-01-11 01:29:18 +00:00
parent 7ba5067f87
commit 68115c74c5
2 changed files with 6 additions and 0 deletions

View File

@ -19,7 +19,9 @@ details. */
#include <iphlpapi.h>
#include <stdlib.h>
#define gethostname cygwin_gethostname
#include <unistd.h>
#undef gethostname
#include <netdb.h>
#define USE_SYS_TYPES_FD_SET
#include <winsock2.h>