This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
My patches to vim 5.0h for gnuwin32
- To: gnu-win32 at cygnus dot com
- Subject: My patches to vim 5.0h for gnuwin32
- From: cgf at bbc dot com (Chris Faylor)
- Date: Fri, 25 Jul 1997 03:50:28 GMT
- Organization: Boston Business Computing, Ltd.
- References: <BMSMTP8697605632a0207776@dlemail.itg.ti.com>
- Reply-To: cgf at bbc 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@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".