]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix enter_suid/leave_suid build errors in ip/Intercept.cc
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 2 Apr 2013 12:42:12 +0000 (06:42 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 2 Apr 2013 12:42:12 +0000 (06:42 -0600)
 Intercept.cc:210: error: 'enter_suid' was not declared in this scope
 Intercept.cc:217: error: 'leave_suid' was not declared in this scope

We should just be including tools.h, but on some GCC the src/tools.h and
src/ip/tools.h include locations clash when building inside src/ip/.
For now we must reference the src/tools.h by its long path.

src/ip/Intercept.cc

index 182b1f6c61150e9b120564f43a41bed481f86b54..0dd48456e818492d9b4f1cd30929417cbe61a14d 100644 (file)
@@ -34,6 +34,7 @@
 #include "comm/Connection.h"
 #include "ip/Intercept.h"
 #include "fde.h"
+#include "src/tools.h"
 
 #if IPF_TRANSPARENT