summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-01-11 01:29:18 +0000
committerChristopher Faylor <me@cgf.cx>2003-01-11 01:29:18 +0000
commit68115c74c56d462086b7831258ed095a08a291d5 (patch)
tree3b797e16e0226f5adccd719e31bf5a4637d24b8d /winsup/cygwin
parent7ba5067f8790afc33671e163c2f33798252f2e34 (diff)
downloadcygnal-68115c74c56d462086b7831258ed095a08a291d5.tar.gz
cygnal-68115c74c56d462086b7831258ed095a08a291d5.tar.bz2
cygnal-68115c74c56d462086b7831258ed095a08a291d5.zip
* net.cc: Use gethostname define from winsock2.h.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/net.cc2
2 files changed, 6 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 5110a819c..406ff5292 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,9 @@
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
mount_info::conv_to_posix_path part.
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 <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>