if_ether.h

From: <news-misc@dont-contact.us>
Date: Fri, 18 Feb 2000 17:58:17 GMT

On Linux libc5 systems, there is no if_ether.h yet arp acl
support seem to compile fine. Would the attached patch
make sense?

--- squid-2.2.STABLE5/include/autoconf.h.in.dist Wed Sep 22 20:06:52 1999
+++ squid-2.2.STABLE5/include/autoconf.h.in Fri Feb 11 14:03:12 2000
@@ -479,6 +479,9 @@
 /* Define if you have the <netinet/tcp.h> header file. */
 #undef HAVE_NETINET_TCP_H
 
+/* Define if you have the <netinet/if_ether.h> header file. */
+#undef HAVE_NETINET_IF_ETHER_H
+
 /* Define if you have the <poll.h> header file. */
 #undef HAVE_POLL_H
 
--- squid-2.2.STABLE5/src/acl.c.dist Wed Sep 22 01:57:55 1999
+++ squid-2.2.STABLE5/src/acl.c Fri Feb 11 14:03:34 2000
@@ -2211,7 +2211,9 @@
 #endif
 #include <net/route.h>
 #include <net/if.h>
+#ifdef HAVE_NETINET_IF_ETHER_H
 #include <netinet/if_ether.h>
+#endif
 
 /*
  * Decode an ascii representation (asc) of an ethernet adress, and place
--- squid-2.2.STABLE5/configure.in.dist Wed Sep 22 20:06:45 1999
+++ squid-2.2.STABLE5/configure.in Fri Feb 11 14:02:32 2000
@@ -597,6 +597,7 @@
         netinet/ip_compat.h \
         netinet/ip_fil.h \
         netinet/ip_nat.h \
+ netinet/if_ether.h \
         poll.h \
         pwd.h \
         regex.h \

--
Ambrose Li / +1 416 321 0088 x272 / Ming Pao Newspapers (Canada) Ltd.
                                  / EDP Department @ Toronto
PGP fingerprint = 945C 2CF7 001D 5F03 B026  375F C5CF A55C 9F10 8B0E
Received on Fri Feb 18 2000 - 11:08:10 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:51:20 MST