Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
git init: optionally allow a directory argument
[gitweb.git]
/
compat
/
mingw.h
diff --git
a/compat/mingw.h
b/compat/mingw.h
index 4f7ba4c13f9d0086acf9d1cfadf6912b1d641033..c1859c5480f67dbe9640975d68407f2c1efd15f5 100644
(file)
--- a/
compat/mingw.h
+++ b/
compat/mingw.h
@@
-92,6
+92,8
@@
static inline int fcntl(int fd, int cmd, long arg)
errno = EINVAL;
return -1;
}
+/* bash cannot reliably detect negative return codes as failure */
+#define exit(code) exit((code) & 0xff)
/*
* simple adaptors