]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3794: MacOS: workaround compiler errors and case-insensitivity
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 25 Feb 2013 03:47:25 +0000 (20:47 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 25 Feb 2013 03:47:25 +0000 (20:47 -0700)
MacOS GCC version implicitly searches the local directory for .h
includes despite the absence of -I. in the provided options.
Furthermore it searches with case-insensitive filenames due to the
underlying case-insensitive filesystem.

The combined result is that libacl .cc files include their local copy of
acl/Url.h instead of the base directories src/URL.h which was needed.

The long term fix will be to shuffle URL.h and its related code into
a convenience library. For now we can avoid issues by prefixing the full
src/ path to the includes.

src/acl/DomainData.cc
src/acl/Url.cc

index 3d5aa33eed5f288134d4095bc0114e7550b987ae..98716b89fd7b72124b5f591d4897cc5dc3004fda 100644 (file)
@@ -38,7 +38,7 @@
 #include "cache_cf.h"
 #include "Debug.h"
 #include "wordlist.h"
-#include "URL.h"
+#include "src/URL.h"
 
 template<class T>
 inline void
index 1be778c3a8efce384338df9cb32353c5adb90922..88fc771c681ce51ab9fd4dfa80414cf92aff80e0 100644 (file)
@@ -37,7 +37,7 @@
 #include "acl/Checklist.h"
 #include "acl/RegexData.h"
 #include "rfc1738.h"
-#include "URL.h"
+#include "src/URL.h"
 
 int
 ACLUrlStrategy::match (ACLData<char const *> * &data, ACLFilledChecklist *checklist)