From: cgf AT bbc DOT com (Chris Faylor) Subject: My patches to vim 5.0h for gnuwin32 24 Jul 1997 21:45:29 -0700 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: References: Reply-To: cgf AT bbc DOT com X-Newsreader: trn 4.0-test57 (27 Apr 97) Original-To: gnu-win32 AT cygnus DOT com X-Mailer: Perl5 Mail::Internet v1.28 Original-Sender: owner-gnu-win32 AT cygnus DOT com The patches that I used to get vim built are below. I believe the only other things I needed to do after installing the patch was: 1) Install GNU termcap (may be optional if using ncurses). 2) Force the configure to use termcap instead of terminfo. (This may not be necessary if you have installed ncurses) 2) Removed the cs= entry from the linux entry in the termcap file. (Not required under Sergey's latest cygwin.dll) diff --exclude tags --exclude osdef.h --exclude config* --exclude pathdef.c -u ./os_unix.c /usr/src/vim-5.0h/src/os_unix.c --- ./os_unix.c Sun May 11 11:05:19 1997 +++ /usr/src/vim-5.0h/src/os_unix.c Sun May 18 21:27:52 1997 @@ -2296,7 +2296,7 @@ FD_ZERO(&rfds); /* calls bzero() on a sun */ FD_ZERO(&efds); FD_SET(fd, &rfds); -#ifndef __QNX__ +#if !defined(__QNX__) && !defined(__CYGWIN32__) /* For QNX select() always returns 1 if this is set. Why? */ FD_SET(fd, &efds); #endif diff --exclude tags --exclude osdef.h --exclude config* --exclude pathdef.c -u ./vim.h /usr/src/vim-5.0h/src/vim.h --- ./vim.h Sun May 11 10:59:29 1997 +++ /usr/src/vim-5.0h/src/vim.h Sun May 11 10:59:31 1997 @@ -518,7 +518,11 @@ #ifdef __EMX__ # define O_EXTRA O_BINARY #else -# define O_EXTRA 0 +# ifdef __CYGWIN32__ +# define O_EXTRA O_BINARY +# else +# define O_EXTRA 0 +# endif #endif #define CHANGED set_Changed() -- http://www.bbc.com/ cgf AT bbc DOT com "Strange how unreal VMS=>UNIX Solutions Boston Business Computing the real can be." - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".