]> 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>
Sat, 27 Apr 2013 02:36:33 +0000 (20:36 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 27 Apr 2013 02:36:33 +0000 (20:36 -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 446b3eacc8c6e8f0f29cca13590d93ffbeb99cb7..11cfcf13bc126ed584105592fe1e18408f77e7f1 100644 (file)
@@ -34,6 +34,7 @@
 #include "comm/Connection.h"
 #include "ip/Intercept.h"
 #include "fde.h"
+#include "src/tools.h"
 
 #if IPF_TRANSPARENT