summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2009-04-02 08:48:03 +0000
committerCorinna Vinschen <corinna@vinschen.de>2009-04-02 08:48:03 +0000
commitbe37a55086d3fcb0e999d4048fca171316e01c35 (patch)
tree85550f1b670a088aaedd6a4a463096969832f8c1
parent72c79be10e56764fe57300814537cd474f50e43d (diff)
downloadcygnal-be37a55086d3fcb0e999d4048fca171316e01c35.tar.gz
cygnal-be37a55086d3fcb0e999d4048fca171316e01c35.tar.bz2
cygnal-be37a55086d3fcb0e999d4048fca171316e01c35.zip
* include/netdb.h: #include <inttypes.h>, <netinet/in.h>,
and <sys/socket.h> per SUSv3.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/include/netdb.h7
2 files changed, 10 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index aca51ddb0..f91fe4d7c 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2009-04-02 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
+
+ * include/netdb.h: #include <inttypes.h>, <netinet/in.h>,
+ and <sys/socket.h> per SUSv3.
+
2009-04-01 Corinna Vinschen <corinna@vinschen.de>
* strfuncs.cc (sys_cp_mbstowcs): Check if ASCII SO is followed by at
diff --git a/winsup/cygwin/include/netdb.h b/winsup/cygwin/include/netdb.h
index ffa2f8792..1a6d241f6 100644
--- a/winsup/cygwin/include/netdb.h
+++ b/winsup/cygwin/include/netdb.h
@@ -63,8 +63,11 @@
extern "C" {
#endif
-#include <stdint.h>
-#include <cygwin/socket.h>
+#include <inttypes.h>
+#include <sys/socket.h>
+#ifndef __INSIDE_CYGWIN_NET__
+#include <netinet/in.h>
+#endif
/*
* Structures returned by network data base library. All addresses are