Skip to content

Commit

Permalink
updated for version 7.3.087
Browse files Browse the repository at this point in the history
Problem:    EINTR is not always defined.
Solution:   Include errno.h in vim.h.
  • Loading branch information
brammool committed Dec 17, 2010
1 parent 7d51f1a commit e88db6d
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 12 deletions.
2 changes: 0 additions & 2 deletions src/if_cscope.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

#if defined(FEAT_CSCOPE) || defined(PROTO)

#include <string.h>
#include <errno.h>
#include <assert.h>
#include <sys/types.h>
#include <sys/stat.h>
Expand Down
1 change: 0 additions & 1 deletion src/if_tcl.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
#endif

#include <tcl.h>
#include <errno.h>
#include <string.h>

typedef struct
Expand Down
1 change: 0 additions & 1 deletion src/integration.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
#include <sys/un.h>
#endif

#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/param.h>
Expand Down
4 changes: 0 additions & 4 deletions src/memline.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@
# 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 */
Expand Down
1 change: 0 additions & 1 deletion src/os_mswin.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
# include <string.h>
#endif
#include <sys/types.h>
#include <errno.h>
#include <signal.h>
#include <limits.h>
#include <process.h>
Expand Down
1 change: 0 additions & 1 deletion src/os_win16.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include <dos.h>
#include <string.h>
#include <sys/types.h>
#include <errno.h>
#include <signal.h>
#include <limits.h>
#include <process.h>
Expand Down
1 change: 0 additions & 1 deletion src/os_win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#endif

#include <sys/types.h>
#include <errno.h>
#include <signal.h>
#include <limits.h>
#include <process.h>
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
87,
/**/
86,
/**/
Expand Down
5 changes: 5 additions & 0 deletions src/vim.h
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,11 @@ typedef unsigned long u8char_T; /* long should be 32 bits or more */
# 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.
Expand Down
1 change: 0 additions & 1 deletion src/workshop.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#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>
Expand Down

0 comments on commit e88db6d

Please sign in to comment.