[PATCH] vim50h for gnuwin32

Chris Faylor cgf@bbc.com
Tue Jun 17 21:28:00 GMT 1997


I've been asked to post my patches to vim50h for gnuwin32.  They are
included below.

I had to build and install GNU termcap to get vim working, and had to
set my TERM environment variable to 'linux'.  After that, vim worked
perfectly.

A binary version of vim50h is available at my (extremely minimalist) web
site:  http://www.tiac.net/users/cgf .

----

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@bbc.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@cygnus.com" with one line of text: "help".



More information about the Cygwin mailing list