You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by "Brent R. Matzelle" <bm...@yahoo.com> on 2002/10/18 16:46:10 UTC

APR sockets.c build error

I just tried to compile the latest APR code with MSVC++ 6 on Win2k
and I experienced the following build errors:

sockets.c
D:\dev\subversion\apr\network_io\win32\sockets.c(185) : error C2065:
'protocol' : undeclared identifier
D:\dev\subversion\apr\network_io\win32\sockets.c(430) : error C2039:
'protocol' : is not a member of 'apr_os_sock_info_t'
        ./include\apr_portable.h(211) : see declaration of
'apr_os_sock_info_t'
D:\dev\subversion\apr\network_io\win32\sockets.c(430) : error C2198:
'set_socket_vars' : too few actual parameters

I tried setting the APR_ENABLE_FOR_1_0 preprocessor and I received
this error:

sockets.c
D:\dev\subversion\apr\network_io\win32\sockets.c(185) : error C2065:
'protocol' : undeclared identifier  

Regards,

Brent.


__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com

Re: APR sockets.c build error

Posted by Jeff Trawick <tr...@attglobal.net>.
"Brent R. Matzelle" <bm...@yahoo.com> writes:

> I just tried to compile the latest APR code with MSVC++ 6 on Win2k
> and I experienced the following build errors:
> 
> sockets.c
> D:\dev\subversion\apr\network_io\win32\sockets.c(185) : error C2065:
> 'protocol' : undeclared identifier

already fixed

> D:\dev\subversion\apr\network_io\win32\sockets.c(430) : error C2039:
> 'protocol' : is not a member of 'apr_os_sock_info_t'
>         ./include\apr_portable.h(211) : see declaration of
> 'apr_os_sock_info_t'

I screwed up... use "0" for last parm in the !APR_ENABLE_FOR_1_0 leg

sorry about that!!!!!!!!!!

I'll commit the fix in a sec after I check for OS/2 breakage


-- 
Jeff Trawick | trawick@attglobal.net
Born in Roswell... married an alien...