summaryrefslogtreecommitdiff
path: root/lib/stdio-impl.h
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2016-12-16 12:50:06 +0200
committerEli Zaretskii <eliz@gnu.org>2016-12-16 12:50:06 +0200
commitb3cf281174674ced4e167081e6908b2b0ee29deb (patch)
tree99adcaa9042007e54a18088638b9b09c1515d07f /lib/stdio-impl.h
parentfb2fdb1435d2520c1cbf2a3d6a53128512a38458 (diff)
downloademacs-b3cf281174674ced4e167081e6908b2b0ee29deb.tar.gz
Unbreak the MinGW build
* lib/stdio-impl.h [__MINGW32__]: Don't include errno.h. Without this, temacs crashes while dumping.
Diffstat (limited to 'lib/stdio-impl.h')
-rw-r--r--lib/stdio-impl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/stdio-impl.h b/lib/stdio-impl.h
index 766d6936590..1972a33ab13 100644
--- a/lib/stdio-impl.h
+++ b/lib/stdio-impl.h
@@ -26,7 +26,9 @@
# include <sys/param.h>
#endif
+#ifndef __MINGW32__
#include <errno.h> /* For detecting Plan9. */
+#endif
#if defined __sferror || defined __DragonFly__ || defined __ANDROID__
/* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin, Android */