diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2021-12-01 22:42:07 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2021-12-01 22:42:07 +0200 |
commit | f77e1318c515d495ac9c08bdfdf2dadf79a9649f (patch) | |
tree | 10811b68fc7b1af1909213db7b991d79e580c0a9 /builtin.c | |
parent | 4285d605b8c0cbe4e0b15724af1b4bd223f25403 (diff) | |
download | egawk-f77e1318c515d495ac9c08bdfdf2dadf79a9649f.tar.gz egawk-f77e1318c515d495ac9c08bdfdf2dadf79a9649f.tar.bz2 egawk-f77e1318c515d495ac9c08bdfdf2dadf79a9649f.zip |
Convert w32_maybe_set_errno to os_maybe_set_errno.
Diffstat (limited to 'builtin.c')
-rw-r--r-- | builtin.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -102,10 +102,8 @@ fatal(_("attempt to use array `%s' in a scalar context"), array_vname(s1)); \ static void wrerror(FILE *fp, const char *from, struct redirect *rp) { -#ifdef __MINGW32__ - if (errno == 0 || errno == EINVAL) - w32_maybe_set_errno(); -#endif + os_maybe_set_errno(); + /* for stdout, die with a real SIGPIPE, like other awks */ if (fp == stdout && errno == EPIPE) die_via_sigpipe(); |