summaryrefslogtreecommitdiff
path: root/makedepend.SH
diff options
context:
space:
mode:
Diffstat (limited to 'makedepend.SH')
-rwxr-xr-xmakedepend.SH4
1 files changed, 3 insertions, 1 deletions
diff --git a/makedepend.SH b/makedepend.SH
index e95818548f..3fa095cea8 100755
--- a/makedepend.SH
+++ b/makedepend.SH
@@ -45,7 +45,9 @@ esac
# We need .. when we are in the x2p directory if we are using the
# cppstdin wrapper script.
-PATH="$PATH:.:.."
+# Put .. and . first so that we pick up the present cppstdin, not
+# an older one lying about in /usr/local/bin.
+PATH=".:..:$PATH"
export PATH
$cat /dev/null >.deptmp