$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar xaf $(DIR_DL)/$(DL_FILE)
+ cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/squid-3.5.1-build-fix-1.patch
cd $(DIR_APP) && ./configure \
--prefix=/usr \
--sysconfdir=/etc/squid \
--- /dev/null
+--- squid-3.5.1/src/clients/FtpRelay.cc.orig 2015-02-14 12:34:18.988891510 +0000
++++ squid-3.5.1/src/clients/FtpRelay.cc 2015-02-14 12:36:11.693043739 +0000
+@@ -320,7 +320,7 @@
+ return; // didn't get complete reply yet
+
+ assert(state < END);
+- assert(this->SM_FUNCS[state] != NULL);
++ assert(this->SM_FUNCS[state]);
+ (this->*SM_FUNCS[state])();
+ }
+
+@@ -359,7 +359,7 @@
+ debugs(9, 5, "forwarding preliminary reply to client");
+
+ // we must prevent concurrent ConnStateData::sendControlMsg() calls
+- Must(thePreliminaryCb == NULL);
++ Must(!thePreliminaryCb);
+ thePreliminaryCb = cb;
+
+ const HttpReply::Pointer reply = createHttpReply(Http::scContinue);
+@@ -378,7 +378,7 @@
+ {
+ debugs(9, 5, "proceeding after preliminary reply to client");
+
+- Must(thePreliminaryCb != NULL);
++ Must(thePreliminaryCb);
+ const PreliminaryCb cb = thePreliminaryCb;
+ thePreliminaryCb = NULL;
+ (this->*cb)();