X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/0c43584a88dfa1ef89a2dc52c380bf218281f57f..bdab2c1bd88b3fa31365e95c5d8884c74dfae5d2:/include/host.mk?ds=sidebyside diff --git a/include/host.mk b/include/host.mk index f3e47c872..9b8a32b67 100644 --- a/include/host.mk +++ b/include/host.mk @@ -59,6 +59,9 @@ $(TMP_DIR)/.host.mk: $(TOPDIR)/include/host.mk else \ echo 'XARGS:=xargs' >> $@; \ fi; \ + PATCH=`which gpatch 2>/dev/null`; \ + [ -n "$$PATCH" -a -x "$$PATCH" ] || PATCH=`which patch 2>/dev/null`; \ + echo "PATCH:=$$PATCH" >> $@; \ ) endif