aboutsummaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2013-05-31 08:40:35 +0000
committerCorinna Vinschen <corinna@vinschen.de>2013-05-31 08:40:35 +0000
commit9fccd63bc3ae664c4265a5d82441de7bcd8ef52e (patch)
treead93e4cece6824cc24decef5bd7e433e88c37b41 /winsup
parentd15bce48e7083d2af993499cb06836ad38d676d2 (diff)
downloadnewlib-9fccd63bc3ae664c4265a5d82441de7bcd8ef52e.zip
newlib-9fccd63bc3ae664c4265a5d82441de7bcd8ef52e.tar.gz
newlib-9fccd63bc3ae664c4265a5d82441de7bcd8ef52e.tar.bz2
* include/cygwin/if.h: Include cygwin/socket.h rather than sys/socket.h
to avoid circular dependency resulting in bogus compile time warnings.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/include/cygwin/if.h4
2 files changed, 7 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index aae0ea9..0897d5f 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2013-05-31 Corinna Vinschen <corinna@vinschen.de>
+
+ * include/cygwin/if.h: Include cygwin/socket.h rather than sys/socket.h
+ to avoid circular dependency resulting in bogus compile time warnings.
+
2013-05-28 Corinna Vinschen <corinna@vinschen.de>
* fhandler_procsys.cc (fhandler_procsys::read): Just call
diff --git a/winsup/cygwin/include/cygwin/if.h b/winsup/cygwin/include/cygwin/if.h
index aa0c02b..2cd6ac5 100644
--- a/winsup/cygwin/include/cygwin/if.h
+++ b/winsup/cygwin/include/cygwin/if.h
@@ -1,6 +1,6 @@
/* cygwin/if.h
- Copyright 1996, 2000, 2001, 2007, 2012 Red Hat, Inc.
+ Copyright 1996, 2000, 2001, 2007, 2012, 2013 Red Hat, Inc.
This file is part of Cygwin.
@@ -16,7 +16,7 @@ extern "C" {
#endif /* __cplusplus */
#include <sys/types.h>
-#include <sys/socket.h>
+#include <cygwin/socket.h>
/* Standard interface flags. */
#define IFF_UP 0x1 /* interface is up */