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>2005-12-22 10:47:10 +0300
committerDanny Smith <dannysmith@users.sourceforge.net>2005-12-22 10:47:10 +0300
commitdb55f91dc081407404559ebe50f126fed048800e (patch)
treed66e5df7e18bde57b842ddaae11ea1fd8f6e7471 /winsup/w32api
parentde935f6d9feb4a671580ad0f685a810749e8ab02 (diff)
* lib/ws2_32.c: New file, defining IPv6 constants.
* Makefile.in (SOURCES): Add ws2_32.c (EXTRA_OBJS): Add ws2_32.o.
Diffstat (limited to 'winsup/w32api')
-rw-r--r--winsup/w32api/ChangeLog6
-rw-r--r--winsup/w32api/lib/Makefile.in4
-rwxr-xr-xwinsup/w32api/lib/ws2_32.c6
3 files changed, 14 insertions, 2 deletions
diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog
index b3e89dce5..f36c98dca 100644
--- a/winsup/w32api/ChangeLog
+++ b/winsup/w32api/ChangeLog
@@ -1,3 +1,9 @@
+2005-12-22 Danny Smith <dannysmith@users.sourceforge.net>
+
+ * lib/ws2_32.c: New file, defining IPv6 constants.
+ * Makefile.in (SOURCES): Add ws2_32.c
+ (EXTRA_OBJS): Add ws2_32.o.
+
2005-12-21 Michael Jung <mjung@iss.tu-darmstadt.de>
* lib/user32.def (PrivateExtractIconsA@32,
diff --git a/winsup/w32api/lib/Makefile.in b/winsup/w32api/lib/Makefile.in
index 4ace96913..efe7d7b90 100644
--- a/winsup/w32api/lib/Makefile.in
+++ b/winsup/w32api/lib/Makefile.in
@@ -117,10 +117,10 @@ EXTRA_LIBS=libuuid.a libscrnsave.a libscrnsavw.a liblargeint.a
LIBS = $(IMPLIBS) $(MIMPLIBS) $(EXTRA_LIBS)
UUID_OBJS = uuid.o mshtml-uuid.o msxml-uuid.o
EXTRA_OBJS = shell32.o scrnsave.o scrnsavw.o largeint.o \
- $(UUID_OBJS) kernel32.o
+ $(UUID_OBJS) kernel32.o ws2_32.o
UUID_SOURCES = uuid.c mshtml-uuid.c msxml-uuid.c
SOURCES = scrnsave.c shell32.c largeint.c $(UUID_SOURCES)\
-res.rc test.c kernel32.c
+res.rc test.c kernel32.c ws2_32.c
DISTFILES = Makefile.in $(DEF_FILES) $(MRI_FILES) $(SOURCES)
diff --git a/winsup/w32api/lib/ws2_32.c b/winsup/w32api/lib/ws2_32.c
new file mode 100755
index 000000000..9584f811f
--- /dev/null
+++ b/winsup/w32api/lib/ws2_32.c
@@ -0,0 +1,6 @@
+#include <winsock2.h>
+#include <ws2tcpip.h>
+
+/* IPv6 constants for use in structure assignments (RFC 2553). */
+const struct in6_addr in6addr_any = {{ IN6ADDR_ANY_INIT }};
+const struct in6_addr in6addr_loopback = {{ IN6ADDR_LOOPBACK_INIT }};