aboutsummaryrefslogtreecommitdiffstats
path: root/awk.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2017-04-11 22:27:36 +0300
committerArnold D. Robbins <arnold@skeeve.com>2017-04-11 22:27:36 +0300
commit7151f1a0e366345adf052b9b2fb1dbf6dcb04837 (patch)
tree56ddcaa1ebdd4869a28fbb84d6aa07674ed88a6c /awk.h
parent887477763ab87b33c06df693e93500991d7c324d (diff)
parentbd6dc293e35fdeac05bd1577593e111fd09d22b7 (diff)
downloadegawk-7151f1a0e366345adf052b9b2fb1dbf6dcb04837.tar.gz
egawk-7151f1a0e366345adf052b9b2fb1dbf6dcb04837.tar.bz2
egawk-7151f1a0e366345adf052b9b2fb1dbf6dcb04837.zip
Merge branch 'master' into feature/memleak
Diffstat (limited to 'awk.h')
-rw-r--r--awk.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/awk.h b/awk.h
index 5cad2044..3a9f826f 100644
--- a/awk.h
+++ b/awk.h
@@ -1980,5 +1980,10 @@ erealloc_real(void *ptr, size_t count, const char *where, const char *var, const
#else
#define ignore_sigpipe()
#define set_sigpipe_to_default()
+#ifdef __MINGW32__
+/* 0xC0000008 is EXCEPTION_INVALID_HANDLE, somewhat appropriate for EPIPE */
+#define die_via_sigpipe() exit(0xC0000008)
+#else /* !__MINGW32__ */
#define die_via_sigpipe() exit(EXIT_FATAL)
+#endif /* !__MINGW32__ */
#endif