64a8147
To: vim-dev@vim.org
64a8147
Subject: Patch 7.2.344
64a8147
Fcc: outbox
64a8147
From: Bram Moolenaar <Bram@moolenaar.net>
64a8147
Mime-Version: 1.0
64a8147
Content-Type: text/plain; charset=UTF-8
64a8147
Content-Transfer-Encoding: 8bit
64a8147
------------
64a8147
64a8147
Patch 7.2.344 (after 7.2.343)
64a8147
Problem:    Can't compile on some systems
64a8147
Solution:   Move the #ifdef outside of the mch_open macro. (Patrick Texier)
64a8147
Files:	    src/ex_cmds2.c
64a8147
64a8147
64a8147
*** ../vim-7.2.343/src/ex_cmds2.c	2010-01-19 23:25:18.000000000 +0100
64a8147
--- src/ex_cmds2.c	2010-01-20 21:38:19.000000000 +0100
64a8147
***************
64a8147
*** 2814,2824 ****
64a8147
  fopen_noinh_readbin(filename)
64a8147
      char    *filename;
64a8147
  {
64a8147
-     int	fd_tmp = mch_open(filename, O_RDONLY
64a8147
  # ifdef WIN32
64a8147
! 			  | O_BINARY | O_NOINHERIT
64a8147
  # endif
64a8147
- 			  , 0);
64a8147
  
64a8147
      if (fd_tmp == -1)
64a8147
  	return NULL;
64a8147
--- 2814,2824 ----
64a8147
  fopen_noinh_readbin(filename)
64a8147
      char    *filename;
64a8147
  {
64a8147
  # ifdef WIN32
64a8147
!     int	fd_tmp = mch_open(filename, O_RDONLY | O_BINARY | O_NOINHERIT, 0);
64a8147
! # else
64a8147
!     int	fd_tmp = mch_open(filename, O_RDONLY, 0);
64a8147
  # endif
64a8147
  
64a8147
      if (fd_tmp == -1)
64a8147
  	return NULL;
64a8147
*** ../vim-7.2.343/src/version.c	2010-01-19 23:25:18.000000000 +0100
64a8147
--- src/version.c	2010-01-20 21:38:23.000000000 +0100
64a8147
***************
64a8147
*** 683,684 ****
64a8147
--- 683,686 ----
64a8147
  {   /* Add new patch number below this line */
64a8147
+ /**/
64a8147
+     344,
64a8147
  /**/
64a8147
64a8147
-- 
64a8147
hundred-and-one symptoms of being an internet addict:
64a8147
128. You can access the Net -- via your portable and cellular phone.
64a8147
64a8147
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
64a8147
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
64a8147
\\\        download, build and distribute -- http://www.A-A-P.org        ///
64a8147
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///