Subject: [PATCH] vim50h for gnuwin32
From: [email-masked] (Chris Faylor)

17 Jun 1997 23:55:11 -0700
Approved: [email-masked]
Distribution: cygnus
Message-ID: <[email-masked]>
Reply-To: [email-masked]
X-Newsreader: trn 4.0-test57 (27 Apr 97)
Original-To: [email-masked]
X-Mailer: Perl5 Mail::Internet v1.28
Original-Sender: [email-masked]

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/	[email-masked]			"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
"[email-masked]" with one line of text: "help".