]> git.eshelyaron.com Git - emacs.git/commitdiff
Unbreak the MinGW build
authorEli Zaretskii <eliz@gnu.org>
Fri, 16 Dec 2016 10:50:06 +0000 (12:50 +0200)
committerEli Zaretskii <eliz@gnu.org>
Fri, 16 Dec 2016 10:50:06 +0000 (12:50 +0200)
* lib/stdio-impl.h [__MINGW32__]: Don't include errno.h.  Without
this, temacs crashes while dumping.

lib/stdio-impl.h

index 766d6936590f72bca14f5f7c413818a087fdf940..1972a33ab13ab894913317603f430b5d8ec2bbec 100644 (file)
@@ -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 */