Problem: EINTR is not always defined.
Solution: Include errno.h in vim.h.
#if defined(FEAT_CSCOPE) || defined(PROTO)
-#include <string.h>
-#include <errno.h>
#include <assert.h>
#include <sys/types.h>
#include <sys/stat.h>
#endif
#include <tcl.h>
-#include <errno.h>
#include <string.h>
typedef struct
#include <sys/un.h>
#endif
-#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/param.h>
# include <proto/dos.h> /* for Open() and Close() */
#endif
-#ifdef HAVE_ERRNO_H
-# include <errno.h>
-#endif
-
typedef struct block0 ZERO_BL; /* contents of the first block */
typedef struct pointer_block PTR_BL; /* contents of a pointer block */
typedef struct data_block DATA_BL; /* contents of a data block */
# include <string.h>
#endif
#include <sys/types.h>
-#include <errno.h>
#include <signal.h>
#include <limits.h>
#include <process.h>
#include <dos.h>
#include <string.h>
#include <sys/types.h>
-#include <errno.h>
#include <signal.h>
#include <limits.h>
#include <process.h>
#endif
#include <sys/types.h>
-#include <errno.h>
#include <signal.h>
#include <limits.h>
#include <process.h>
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 87,
/**/
86,
/**/
# include <sys/stat.h>
#endif
+#if defined(HAVE_ERRNO_H) || defined(DJGPP) || defined(WIN16) \
+ || defined(WIN32) || defined(_WIN64) || defined(__EMX__)
+# include <errno.h>
+#endif
+
/*
* Allow other (non-unix) systems to configure themselves now
* These are also in os_unix.h, because osdef.sh needs them there.
#include <sys/types.h>
#include <netdb.h>
#include <netinet/in.h>
-#include <errno.h>
#include <sys/socket.h>
#ifdef HAVE_LIBGEN_H
# include <libgen.h>