httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kraemer <Martin.Krae...@mch.sni.de>
Subject Re: apache_1.2b5-dev: proxy_connect.c: Undefined symbol inet_aton
Date Tue, 07 Jan 1997 14:49:54 GMT
I wrote,...
> I just tried to compile the 1.2b5-dev version of apache; in the cvs-rev
> 1.8, the ProxyBlock directive was added, but it uses a function
> inet_aton() which is available on none of the SVR4 releases I have access
> to (including a fairly recent SVR4.2).

Here's a patch to make it work under my SVR4 versions:

Index: modules/proxy/proxy_connect.c
===================================================================
RCS file: /home/cvs/apache/src/modules/proxy/proxy_connect.c,v
retrieving revision 1.3
diff -u -r1.3 proxy_connect.c
--- proxy_connect.c	1997/01/07 10:34:33	1.3
+++ proxy_connect.c	1997/01/07 14:48:40
@@ -116,7 +116,7 @@
     }
  
 /* check if ProxyBlock directive on this host */
-    inet_aton(host, &destaddr);
+    destaddr.s_addr = inet_addr(host);
     for (i=0; i < conf->noproxies->nelts; i++)
     {
         if ((npent[i].name != NULL && strstr(host, npent[i].name) != NULL)
Index: modules/proxy/proxy_ftp.c
===================================================================
RCS file: /home/cvs/apache/src/modules/proxy/proxy_ftp.c,v
retrieving revision 1.4
diff -u -r1.4 proxy_ftp.c
--- proxy_ftp.c	1997/01/07 10:34:34	1.4
+++ proxy_ftp.c	1997/01/07 14:48:40
@@ -412,7 +412,7 @@
     }
 
 /* check if ProxyBlock directive on this host */
-    inet_aton(host, &destaddr);
+    destaddr.s_addr = inet_addr(host);
     for (i=0; i < conf->noproxies->nelts; i++)
     {
         if ((npent[i].name != NULL && strstr(host, npent[i].name) != NULL)
Index: modules/proxy/proxy_http.c
===================================================================
RCS file: /home/cvs/apache/src/modules/proxy/proxy_http.c,v
retrieving revision 1.8
diff -u -r1.8 proxy_http.c
--- proxy_http.c	1997/01/07 10:34:35	1.8
+++ proxy_http.c	1997/01/07 14:48:40
@@ -196,7 +196,7 @@
     }
 
 /* check if ProxyBlock directive on this host */
-    inet_aton(desthost, &destaddr);
+    destaddr.s_addr = inet_addr(desthost);
     for (i=0; i < conf->noproxies->nelts; i++)
     {
         if ((npent[i].name != NULL && strstr(desthost, npent[i].name) != NULL)

-- 
| S I E M E N S |  <Martin.Kraemer@mch.sni.de>  |      Siemens Nixdorf
| ------------- |   Voice: +49-89-636-46021     |  Informationssysteme AG
| N I X D O R F |   FAX:   +49-89-636-44994     |   81730 Munich, Germany
~~~~~~~~~~~~~~~~My opinions only, of course; pgp key available on request

Mime
View raw message