X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=compat%2Fmingw.h;h=c1859c5480f67dbe9640975d68407f2c1efd15f5;hb=bba0fd22ad654460a81c4b35462b600d9432a869;hp=4f7ba4c13f9d0086acf9d1cfadf6912b1d641033;hpb=cec3f989dab861761ad83e264c3cd8a754e4ace5;p=git.git diff --git a/compat/mingw.h b/compat/mingw.h index 4f7ba4c13..c1859c548 100644 --- 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