* 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

@ -1,3 +1,7 @@
2003-01-10 Christopher Faylor <cgf@redhat.com>
* net.cc: Use gethostname define from winsock2.h.
2003-01-10 Christopher Faylor <cgf@redhat.com>
* path.cc: Unrevert below reversion except for

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>