Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2002-03-06 14:31:47 +0300
committerDanny Smith <dannysmith@users.sourceforge.net>2002-03-06 14:31:47 +0300
commitb7410006b900f996e5cca6a977f0ca20cfa216fb (patch)
tree414ed2bfe3592c45f0b1c4e7610ff55e5155854f /winsup/w32api/lib
parent55f26f11945e4cbacfdaff197ff5220ee7417e9f (diff)
* include/mswsock.h: Group winsock2 dependants
together and protect with #ifdef _WINSOCK2_H. * lib/test.c: Only test ws2tcpip.h if winsock2.h has been included.
Diffstat (limited to 'winsup/w32api/lib')
-rw-r--r--winsup/w32api/lib/test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/w32api/lib/test.c b/winsup/w32api/lib/test.c
index ce9ff3bfb..c7eadc937 100644
--- a/winsup/w32api/lib/test.c
+++ b/winsup/w32api/lib/test.c
@@ -55,7 +55,9 @@
#include <winioctl.h>
#include <winresrc.h>
#include <winsock.h>
+#ifdef _WINSOCK2_H
#include <ws2tcpip.h>
+#endif
#include <wsnetbs.h>
#include <setupapi.h>
#include <aclapi.h>