Ian Holsman <[EMAIL PROTECTED]> writes:

> Hi.
> I'm trying to build the latest APR CVS release using the .dsw supplied
> in Apache.
> 
> I've run into the problem where it couldn't find apr_inet_pton.
> I can't just include the file, as it uses EAFNOSUPPORT which isn't defined
> in Win32.
> 
> I think this is a pretty recent change, due to the Win32 file trying
> include ../unix/sa_common.c

I guess I'm the problem... I didn't realize that we didn't build
inet_pton on Win32.

Can you try this?  Hopefully I'll get a chance to play with it later.

Thanks (and sorry!),

Jeff

Index: apr.dsp
===================================================================
RCS file: /home/cvspublic/apr/apr.dsp,v
retrieving revision 1.66
diff -u -r1.66 apr.dsp
--- apr.dsp     2001/02/03 16:31:07     1.66
+++ apr.dsp     2001/03/15 23:32:36
@@ -267,6 +267,10 @@
 # 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
Index: network_io/unix/inet_pton.c
===================================================================
RCS file: /home/cvspublic/apr/network_io/unix/inet_pton.c,v
retrieving revision 1.4
diff -u -r1.4 inet_pton.c
--- network_io/unix/inet_pton.c 2001/03/07 17:41:37     1.4
+++ network_io/unix/inet_pton.c 2001/03/15 23:32:40
@@ -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.
> 

-- 
Jeff Trawick | [EMAIL PROTECTED] | PGP public key at web site:
       http://www.geocities.com/SiliconValley/Park/9289/
             Born in Roswell... married an alien...

Reply via email to