On Tue, 7 Aug 2001, Cliff Woolley wrote:
> On FreeBSD (icarus) now:
>
> /bin/sh /x1/home/jwoolley/httpd-2.0/srclib/apr/libtool --silent
> --mode=compile gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes
> -Wmissing-declarations -DHAVE_CONFIG_H -D_REENTRANT -D_THREAD_SAFE
> -DAPR_ASSERT_MEMORY -I../../include -I../../include/arch/unix
> -I../../include/arch/unix -c sockets.c && touch sockets.lo
> sockets.c: In function `apr_connect':
> sockets.c:282: `sockfd' undeclared (first use in this function)
> sockets.c:282: (Each undeclared identifier is reported only once
> sockets.c:282: for each function it appears in.)
> *** Error code 1
>
> Stop in /x1/home/jwoolley/httpd-2.0/srclib/apr/network_io/unix.
> *** Error code 1
>
> Stop in /x1/home/jwoolley/httpd-2.0/srclib/apr/network_io/unix.
Was it supposed to say the following? (Please forgive the wrapped lines.)
--Cliff
Index: sockets.c
===================================================================
RCS file: /home/cvs/apr/network_io/unix/sockets.c,v
retrieving revision 1.85
diff -u -d -r1.85 sockets.c
--- sockets.c 2001/08/07 23:56:35 1.85
+++ sockets.c 2001/08/08 00:20:17
@@ -279,7 +279,7 @@
if (rc != APR_SUCCESS) {
return rc;
}
- if ((rc = getsockopt(sockfd, SOL_SOCKET, SO_ERROR, &error, &len))
< 0) {
+ if ((rc = getsockopt(sock->socketdes, SOL_SOCKET, SO_ERROR,
&error, &len)) < 0) {
return(rc);
}
if (error) {
--------------------------------------------------------------
Cliff Woolley
[EMAIL PROTECTED]
Charlottesville, VA