apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <trawi...@bellsouth.net>
Subject Re: Problem Build Latest Win32 CVS Release
Date Thu, 15 Mar 2001 23:32:40 GMT
Ian Holsman <apache-apr@holsman.net> 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 | trawickj@bellsouth.net | PGP public key at web site:
       http://www.geocities.com/SiliconValley/Park/9289/
             Born in Roswell... married an alien...

Mime
View raw message