diff options
author | Eli Zaretskii <eliz@gnu.org> | 2016-04-07 19:43:07 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2016-04-07 19:43:07 +0300 |
commit | 82dec6932ed868d9466d23ac5956e09594707dd2 (patch) | |
tree | 9e3791ac45ac303018ef8507769d39e475720662 /builtin.c | |
parent | 1b5d1b8870cb0ac1c4b99f6cf67e3277427df864 (diff) | |
download | egawk-82dec6932ed868d9466d23ac5956e09594707dd2.tar.gz egawk-82dec6932ed868d9466d23ac5956e09594707dd2.tar.bz2 egawk-82dec6932ed868d9466d23ac5956e09594707dd2.zip |
Fix the MinGW compilation.
Diffstat (limited to 'builtin.c')
-rw-r--r-- | builtin.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2101,7 +2101,11 @@ do_system(int nargs) if (do_posix) ; /* leave it alone, full 16 bits */ else if (do_traditional) +#ifdef __MINGW32__ + ret = (((unsigned)status) & ~0xC0000000); +#else ret = (status / 256.0); +#endif else if (WIFEXITED(status)) ret = WEXITSTATUS(status); /* normal exit */ else if (WIFSIGNALED(status)) { |