delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/06/17/23:55:11

From: cgf AT bbc DOT com (Chris Faylor)
Subject: [PATCH] vim50h for gnuwin32
17 Jun 1997 23:55:11 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <EBxq2w.5LF.cygnus.gnu-win32@bbc.com>
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

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 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".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019