| To: vim_dev@googlegroups.com |
| Subject: Patch 7.3.087 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| Patch 7.3.087 |
| Problem: EINTR is not always defined. |
| Solution: Include errno.h in vim.h. |
| Files: src/if_cscope.c, src/if_tcl.c, src/integration.c, src/memline.c, |
| src/os_mswin.c, src/os_win16.c, src/os_win32.c, src/vim.h, |
| src/workshop.c |
| |
| |
| |
| |
| |
| *** 13,20 **** |
| |
| #if defined(FEAT_CSCOPE) || defined(PROTO) |
| |
| - #include <string.h> |
| - #include <errno.h> |
| #include <assert.h> |
| #include <sys/types.h> |
| #include <sys/stat.h> |
| --- 13,18 ---- |
| |
| |
| |
| *** 74,80 **** |
| #endif |
| |
| #include <tcl.h> |
| - #include <errno.h> |
| #include <string.h> |
| |
| typedef struct |
| --- 74,79 ---- |
| |
| |
| |
| *** 33,39 **** |
| #include <sys/un.h> |
| #endif |
| |
| - #include <errno.h> |
| #include <sys/types.h> |
| #include <sys/socket.h> |
| #include <sys/param.h> |
| --- 33,38 ---- |
| |
| |
| |
| *** 52,61 **** |
| # 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 */ |
| --- 52,57 ---- |
| |
| |
| |
| *** 30,36 **** |
| # include <string.h> |
| #endif |
| #include <sys/types.h> |
| - #include <errno.h> |
| #include <signal.h> |
| #include <limits.h> |
| #include <process.h> |
| --- 30,35 ---- |
| |
| |
| |
| *** 25,31 **** |
| #include <dos.h> |
| #include <string.h> |
| #include <sys/types.h> |
| - #include <errno.h> |
| #include <signal.h> |
| #include <limits.h> |
| #include <process.h> |
| --- 25,30 ---- |
| |
| |
| |
| *** 27,33 **** |
| #endif |
| |
| #include <sys/types.h> |
| - #include <errno.h> |
| #include <signal.h> |
| #include <limits.h> |
| #include <process.h> |
| --- 27,32 ---- |
| |
| |
| |
| *** 480,485 **** |
| --- 480,490 ---- |
| # 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. |
| |
| |
| |
| *** 16,22 **** |
| #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> |
| --- 16,21 ---- |
| |
| |
| |
| *** 716,717 **** |
| --- 716,719 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 87, |
| /**/ |
| |
| -- |
| How To Keep A Healthy Level Of Insanity: |
| 17. When the money comes out the ATM, scream "I won!, I won! 3rd |
| time this week!!!!!" |
| |
| /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ |
| /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
| \\\ an exciting new programming language -- http://www.Zimbu.org /// |
| \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |