]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
MacOS: workaround compiler errors and case-insensitivity
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 24 Feb 2013 07:26:26 +0000 (00:26 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 24 Feb 2013 07:26:26 +0000 (00:26 -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 e4d12d4cb0ac678f2f10738532e5bc434abf7322..ca47794c103162d58de4d1271261e38cda39b8ba 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, ACLFlags &)