Karsten Hopp 47c3b2
To: vim_dev@googlegroups.com
Karsten Hopp 47c3b2
Subject: Patch 7.3.087
Karsten Hopp 47c3b2
Fcc: outbox
Karsten Hopp 47c3b2
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 47c3b2
Mime-Version: 1.0
Karsten Hopp 47c3b2
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 47c3b2
Content-Transfer-Encoding: 8bit
Karsten Hopp 47c3b2
------------
Karsten Hopp 47c3b2
Karsten Hopp 47c3b2
Patch 7.3.087
Karsten Hopp 47c3b2
Problem:    EINTR is not always defined.
Karsten Hopp 47c3b2
Solution:   Include errno.h in vim.h.
Karsten Hopp 47c3b2
Files:	    src/if_cscope.c, src/if_tcl.c, src/integration.c, src/memline.c,
Karsten Hopp 47c3b2
	    src/os_mswin.c, src/os_win16.c, src/os_win32.c, src/vim.h,
Karsten Hopp 47c3b2
	    src/workshop.c
Karsten Hopp 47c3b2
Karsten Hopp 47c3b2
Karsten Hopp 47c3b2
*** ../vim-7.3.086/src/if_cscope.c	2010-12-17 18:06:00.000000000 +0100
Karsten Hopp 47c3b2
--- src/if_cscope.c	2010-12-17 20:06:01.000000000 +0100
Karsten Hopp 47c3b2
***************
Karsten Hopp 47c3b2
*** 13,20 ****
Karsten Hopp 47c3b2
  
Karsten Hopp 47c3b2
  #if defined(FEAT_CSCOPE) || defined(PROTO)
Karsten Hopp 47c3b2
  
Karsten Hopp 47c3b2
- #include <string.h>
Karsten Hopp 47c3b2
- #include <errno.h>
Karsten Hopp 47c3b2
  #include <assert.h>
Karsten Hopp 47c3b2
  #include <sys/types.h>
Karsten Hopp 47c3b2
  #include <sys/stat.h>
Karsten Hopp 47c3b2
--- 13,18 ----
Karsten Hopp 47c3b2
*** ../vim-7.3.086/src/if_tcl.c	2010-08-15 21:57:27.000000000 +0200
Karsten Hopp 47c3b2
--- src/if_tcl.c	2010-12-17 20:06:56.000000000 +0100
Karsten Hopp 47c3b2
***************
Karsten Hopp 47c3b2
*** 74,80 ****
Karsten Hopp 47c3b2
  #endif
Karsten Hopp 47c3b2
  
Karsten Hopp 47c3b2
  #include <tcl.h>
Karsten Hopp 47c3b2
- #include <errno.h>
Karsten Hopp 47c3b2
  #include <string.h>
Karsten Hopp 47c3b2
  
Karsten Hopp 47c3b2
  typedef struct
Karsten Hopp 47c3b2
--- 74,79 ----
Karsten Hopp 47c3b2
*** ../vim-7.3.086/src/integration.c	2010-08-15 21:57:29.000000000 +0200
Karsten Hopp 47c3b2
--- src/integration.c	2010-12-17 20:07:12.000000000 +0100
Karsten Hopp 47c3b2
***************
Karsten Hopp 47c3b2
*** 33,39 ****
Karsten Hopp 47c3b2
  #include <sys/un.h>
Karsten Hopp 47c3b2
  #endif
Karsten Hopp 47c3b2
  
Karsten Hopp 47c3b2
- #include <errno.h>
Karsten Hopp 47c3b2
  #include <sys/types.h>
Karsten Hopp 47c3b2
  #include <sys/socket.h>
Karsten Hopp 47c3b2
  #include <sys/param.h>
Karsten Hopp 47c3b2
--- 33,38 ----
Karsten Hopp 47c3b2
*** ../vim-7.3.086/src/memline.c	2010-12-17 18:06:00.000000000 +0100
Karsten Hopp 47c3b2
--- src/memline.c	2010-12-17 20:07:31.000000000 +0100
Karsten Hopp 47c3b2
***************
Karsten Hopp 47c3b2
*** 52,61 ****
Karsten Hopp 47c3b2
  # include <proto/dos.h>	    /* for Open() and Close() */
Karsten Hopp 47c3b2
  #endif
Karsten Hopp 47c3b2
  
Karsten Hopp 47c3b2
- #ifdef HAVE_ERRNO_H
Karsten Hopp 47c3b2
- # include <errno.h>
Karsten Hopp 47c3b2
- #endif
Karsten Hopp 47c3b2
- 
Karsten Hopp 47c3b2
  typedef struct block0		ZERO_BL;    /* contents of the first block */
Karsten Hopp 47c3b2
  typedef struct pointer_block	PTR_BL;	    /* contents of a pointer block */
Karsten Hopp 47c3b2
  typedef struct data_block	DATA_BL;    /* contents of a data block */
Karsten Hopp 47c3b2
--- 52,57 ----
Karsten Hopp 47c3b2
*** ../vim-7.3.086/src/os_mswin.c	2010-12-17 18:06:00.000000000 +0100
Karsten Hopp 47c3b2
--- src/os_mswin.c	2010-12-17 20:08:14.000000000 +0100
Karsten Hopp 47c3b2
***************
Karsten Hopp 47c3b2
*** 30,36 ****
Karsten Hopp 47c3b2
  # include <string.h>
Karsten Hopp 47c3b2
  #endif
Karsten Hopp 47c3b2
  #include <sys/types.h>
Karsten Hopp 47c3b2
- #include <errno.h>
Karsten Hopp 47c3b2
  #include <signal.h>
Karsten Hopp 47c3b2
  #include <limits.h>
Karsten Hopp 47c3b2
  #include <process.h>
Karsten Hopp 47c3b2
--- 30,35 ----
Karsten Hopp 47c3b2
*** ../vim-7.3.086/src/os_win16.c	2010-12-17 18:06:00.000000000 +0100
Karsten Hopp 47c3b2
--- src/os_win16.c	2010-12-17 20:08:53.000000000 +0100
Karsten Hopp 47c3b2
***************
Karsten Hopp 47c3b2
*** 25,31 ****
Karsten Hopp 47c3b2
  #include <dos.h>
Karsten Hopp 47c3b2
  #include <string.h>
Karsten Hopp 47c3b2
  #include <sys/types.h>
Karsten Hopp 47c3b2
- #include <errno.h>
Karsten Hopp 47c3b2
  #include <signal.h>
Karsten Hopp 47c3b2
  #include <limits.h>
Karsten Hopp 47c3b2
  #include <process.h>
Karsten Hopp 47c3b2
--- 25,30 ----
Karsten Hopp 47c3b2
*** ../vim-7.3.086/src/os_win32.c	2010-12-17 18:06:00.000000000 +0100
Karsten Hopp 47c3b2
--- src/os_win32.c	2010-12-17 20:09:18.000000000 +0100
Karsten Hopp 47c3b2
***************
Karsten Hopp 47c3b2
*** 27,33 ****
Karsten Hopp 47c3b2
  #endif
Karsten Hopp 47c3b2
  
Karsten Hopp 47c3b2
  #include <sys/types.h>
Karsten Hopp 47c3b2
- #include <errno.h>
Karsten Hopp 47c3b2
  #include <signal.h>
Karsten Hopp 47c3b2
  #include <limits.h>
Karsten Hopp 47c3b2
  #include <process.h>
Karsten Hopp 47c3b2
--- 27,32 ----
Karsten Hopp 47c3b2
*** ../vim-7.3.086/src/vim.h	2010-12-17 18:06:00.000000000 +0100
Karsten Hopp 47c3b2
--- src/vim.h	2010-12-17 20:09:56.000000000 +0100
Karsten Hopp 47c3b2
***************
Karsten Hopp 47c3b2
*** 480,485 ****
Karsten Hopp 47c3b2
--- 480,490 ----
Karsten Hopp 47c3b2
  # include <sys/stat.h>
Karsten Hopp 47c3b2
  #endif
Karsten Hopp 47c3b2
  
Karsten Hopp 47c3b2
+ #if defined(HAVE_ERRNO_H) || defined(DJGPP) || defined(WIN16) \
Karsten Hopp 47c3b2
+ 	|| defined(WIN32) || defined(_WIN64) || defined(__EMX__)
Karsten Hopp 47c3b2
+ # include <errno.h>
Karsten Hopp 47c3b2
+ #endif
Karsten Hopp 47c3b2
+ 
Karsten Hopp 47c3b2
  /*
Karsten Hopp 47c3b2
   * Allow other (non-unix) systems to configure themselves now
Karsten Hopp 47c3b2
   * These are also in os_unix.h, because osdef.sh needs them there.
Karsten Hopp 47c3b2
*** ../vim-7.3.086/src/workshop.c	2010-08-15 21:57:26.000000000 +0200
Karsten Hopp 47c3b2
--- src/workshop.c	2010-12-17 20:09:31.000000000 +0100
Karsten Hopp 47c3b2
***************
Karsten Hopp 47c3b2
*** 16,22 ****
Karsten Hopp 47c3b2
  #include <sys/types.h>
Karsten Hopp 47c3b2
  #include <netdb.h>
Karsten Hopp 47c3b2
  #include <netinet/in.h>
Karsten Hopp 47c3b2
- #include <errno.h>
Karsten Hopp 47c3b2
  #include <sys/socket.h>
Karsten Hopp 47c3b2
  #ifdef HAVE_LIBGEN_H
Karsten Hopp 47c3b2
  # include <libgen.h>
Karsten Hopp 47c3b2
--- 16,21 ----
Karsten Hopp 47c3b2
*** ../vim-7.3.086/src/version.c	2010-12-17 18:52:56.000000000 +0100
Karsten Hopp 47c3b2
--- src/version.c	2010-12-17 20:14:49.000000000 +0100
Karsten Hopp 47c3b2
***************
Karsten Hopp 47c3b2
*** 716,717 ****
Karsten Hopp 47c3b2
--- 716,719 ----
Karsten Hopp 47c3b2
  {   /* Add new patch number below this line */
Karsten Hopp 47c3b2
+ /**/
Karsten Hopp 47c3b2
+     87,
Karsten Hopp 47c3b2
  /**/
Karsten Hopp 47c3b2
Karsten Hopp 47c3b2
-- 
Karsten Hopp 47c3b2
How To Keep A Healthy Level Of Insanity:
Karsten Hopp 47c3b2
17. When the money comes out the ATM, scream "I won!, I won! 3rd
Karsten Hopp 47c3b2
    time this week!!!!!"
Karsten Hopp 47c3b2
Karsten Hopp 47c3b2
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 47c3b2
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 47c3b2
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 47c3b2
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///