Hi,

> Is there any way to avoid having to include
> arch/unix/apr_arch_networkio.h directly?  Unfortunately, changing it to
> apr_network_io.h causes a compile failure on line 930.  Apparently we
> just need the struct definitions for apr_socket_t and sock_userdata_t.

They are no longer needed for v2 and I accidentally left them in. The
attached patch is against a system with v2 applied and removes the
problematic include.

Thanks,

Stefan
--- peruser-v2.c        2006-03-06 10:23:46.000000000 +0100
+++ peruser.c   2006-03-06 10:23:52.000000000 +0100
@@ -66,7 +66,6 @@
 #include "apr_strings.h"
 #include "apr_thread_proc.h"
 #include "apr_signal.h"
-#include "arch/unix/apr_arch_networkio.h"
 #define APR_WANT_STDIO
 #define APR_WANT_STRFUNC
 #define APR_WANT_IOVEC
@@ -922,13 +921,10 @@
     int sock_fd;
     apr_status_t rv;
     ap_sb_handle_t *sbh;
-    apr_sockaddr_t *local_addr;
     child_info_t *processor;
     apr_pool_t *ptrans;
     peruser_server_conf *sconf;
 
-    local_addr = (apr_sockaddr_t*)sock->local_addr;
-
     _DBG("Creating dummy connection to use the vhost lookup api", 0);
 
     ap_create_sb_handle(&sbh, p, conn_id, 0);
@@ -946,7 +942,6 @@
        sconf = PERUSER_SERVER_CONF(current_conn->base_server->module_config);
        processor = &CHILD_INFO_TABLE[sconf->senv->processor_id];
 
-       //processor = &CHILD_INFO_TABLE[1]; // FIXME: Lookup the right 
processor!
        _DBG("Forwarding without further inspection, processor %d", 
processor->id);
         if (processor->status == CHILD_STATUS_STANDBY)
         {
_______________________________________________
Peruser mailing list
[email protected]
http://www.telana.com/mailman/listinfo/peruser

Reply via email to