]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #199: sync redeclarations when compiling support for ARP acls
authorhno <>
Sat, 1 Mar 2003 18:04:45 +0000 (18:04 +0000)
committerhno <>
Sat, 1 Mar 2003 18:04:45 +0000 (18:04 +0000)
src/ACLARP.cc

index fa00955749e8dd8372f76432c05090600dd02d51..3327c55272e7bd769767e4c9770c620dcb32be73 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: ACLARP.cc,v 1.1 2003/02/25 12:16:55 robertc Exp $
+ * $Id: ACLARP.cc,v 1.2 2003/03/01 11:04:45 hno Exp $
  *
  * DEBUG: section 28    Access Control
  * AUTHOR: Duane Wessels
  * Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
  */
 
+#include "config.h"
+
+#ifdef _SQUID_SOLARIS_
+#include <sys/sockio.h>
+#else
+#include <sys/sysctl.h>
+#endif
+#ifdef _SQUID_LINUX_
+#include <net/if_arp.h>
+#include <sys/ioctl.h>
+#else
+#include <net/if_dl.h>
+#endif
+#include <net/route.h>
+#include <net/if.h>
+#if HAVE_NETINET_IF_ETHER_H
+#include <netinet/if_ether.h>
+#endif
+
 #include "squid.h"
 #include "ACLARP.h"
 
@@ -134,23 +153,6 @@ ACLARP::valid () const
  *       Solaris code by R. Gancarz <radekg@solaris.elektrownia-lagisza.com.pl>
  */
 
-#ifdef _SQUID_SOLARIS_
-#include <sys/sockio.h>
-#else
-#include <sys/sysctl.h>
-#endif
-#ifdef _SQUID_LINUX_
-#include <net/if_arp.h>
-#include <sys/ioctl.h>
-#else
-#include <net/if_dl.h>
-#endif
-#include <net/route.h>
-#include <net/if.h>
-#if HAVE_NETINET_IF_ETHER_H
-#include <netinet/if_ether.h>
-#endif
-
 /*
  * Decode an ascii representation (asc) of an ethernet adress, and place
  * it in eth[6].