From 68115c74c56d462086b7831258ed095a08a291d5 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 11 Jan 2003 01:29:18 +0000 Subject: [PATCH] * net.cc: Use gethostname define from winsock2.h. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/net.cc | 2 ++ 2 files changed, 6 insertions(+) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 5110a819c..406ff5292 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2003-01-10 Christopher Faylor + + * net.cc: Use gethostname define from winsock2.h. + 2003-01-10 Christopher Faylor * path.cc: Unrevert below reversion except for diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc index b55e439b4..4bf5b242d 100644 --- a/winsup/cygwin/net.cc +++ b/winsup/cygwin/net.cc @@ -19,7 +19,9 @@ details. */ #include #include +#define gethostname cygwin_gethostname #include +#undef gethostname #include #define USE_SYS_TYPES_FD_SET #include