Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
exec_cmd.c: replace hard-coded path list with one from <paths.h>
[gitweb.git]
/
git-compat-util.h
diff --git
a/git-compat-util.h
b/git-compat-util.h
index a3c45373669cd8482c04d5815862ed36a153572d..e215ce0dd9f19707cbec485e898ae829c6b3882e 100644
(file)
--- a/
git-compat-util.h
+++ b/
git-compat-util.h
@@
-163,6
+163,13
@@
extern char *gitbasename(char *);
#define PATH_SEP ':'
#endif
+#ifdef HAVE_PATHS_H
+#include <paths.h>
+#endif
+#ifndef _PATH_DEFPATH
+#define _PATH_DEFPATH "/usr/local/bin:/usr/bin:/bin"
+#endif
+
#ifndef STRIP_EXTENSION
#define STRIP_EXTENSION ""
#endif