summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2001-03-16 03:22:04 +0000
committertrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2001-03-16 03:22:04 +0000
commit9b94b9cdc6287e024edb4d1fb6892b0fadcd6473 (patch)
tree9e3e766f123f4668c0ea95a44d15b1316e3ce892
parentbd599666e57ecefe186b09b18e6c37090db359d4 (diff)
downloadlibapr-9b94b9cdc6287e024edb4d1fb6892b0fadcd6473.tar.gz
build inet_pton.c on Win32
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61365 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--apr.dsp4
-rw-r--r--libapr.dsp4
-rw-r--r--network_io/unix/inet_pton.c4
3 files changed, 12 insertions, 0 deletions
diff --git a/apr.dsp b/apr.dsp
index 2fb1ed25e..645e5adcb 100644
--- a/apr.dsp
+++ b/apr.dsp
@@ -267,6 +267,10 @@ SOURCE=.\network_io\unix\inet_ntop.c
# End Source File
# Begin Source File
+SOURCE=.\network_io\unix\inet_pton.c
+# End Source File
+# Begin Source File
+
SOURCE=.\include\arch\win32\networkio.h
# End Source File
# Begin Source File
diff --git a/libapr.dsp b/libapr.dsp
index be61aca05..2ddf3e73f 100644
--- a/libapr.dsp
+++ b/libapr.dsp
@@ -272,6 +272,10 @@ SOURCE=.\network_io\unix\inet_ntop.c
# End Source File
# Begin Source File
+SOURCE=.\network_io\unix\inet_pton.c
+# End Source File
+# Begin Source File
+
SOURCE=.\include\arch\win32\networkio.h
# End Source File
# Begin Source File
diff --git a/network_io/unix/inet_pton.c b/network_io/unix/inet_pton.c
index 4a7613307..9524e87cd 100644
--- a/network_io/unix/inet_pton.c
+++ b/network_io/unix/inet_pton.c
@@ -48,6 +48,10 @@
#define __P(x) x
#endif
+#if !defined(EAFNOSUPPORT) && defined(WSAEAFNOSUPPORT)
+#define EAFNOSUPPORT WSAEAFNOSUPPORT
+#endif
+
/*
* WARNING: Don't even consider trying to compile this on a system where
* sizeof(int) < 4. sizeof(int) > 4 is fine; all the world's not a VAX.