comparison src/os_unix.c @ 1076:17b9587ff6d5 v7.0.202

updated for version 7.0-202
author vimboss
date Tue, 27 Feb 2007 15:48:28 +0000
parents 99ccc8932b6c
children 342d2b3a072a
comparison
equal deleted inserted replaced
1075:21ce954cbdca 1076:17b9587ff6d5
23 * (fd_set *), which is wrong. This define removes that prototype. We define 23 * (fd_set *), which is wrong. This define removes that prototype. We define
24 * our own prototype below. 24 * our own prototype below.
25 * Don't use it for the Mac, it causes a warning for precompiled headers. 25 * Don't use it for the Mac, it causes a warning for precompiled headers.
26 * TODO: use a configure check for precompiled headers? 26 * TODO: use a configure check for precompiled headers?
27 */ 27 */
28 #ifndef __APPLE__ 28 #if !defined(__APPLE__) && !defined(__TANDEM)
29 # define select select_declared_wrong 29 # define select select_declared_wrong
30 #endif 30 #endif
31 31
32 #include "vim.h" 32 #include "vim.h"
33 33
46 #endif 46 #endif
47 47
48 /* 48 /*
49 * Use this prototype for select, some include files have a wrong prototype 49 * Use this prototype for select, some include files have a wrong prototype
50 */ 50 */
51 #undef select 51 #ifndef __TANDEM
52 #ifdef __BEOS__ 52 # undef select
53 # define select beos_select 53 # ifdef __BEOS__
54 # define select beos_select
55 # endif
54 #endif 56 #endif
55 57
56 #if defined(HAVE_SELECT) 58 #if defined(HAVE_SELECT)
57 extern int select __ARGS((int, fd_set *, fd_set *, fd_set *, struct timeval *)); 59 extern int select __ARGS((int, fd_set *, fd_set *, fd_set *, struct timeval *));
58 #endif 60 #endif
4768 * required. Should not be used */ 4770 * required. Should not be used */
4769 ret = 0; 4771 ret = 0;
4770 # else 4772 # else
4771 ret = select(maxfd + 1, &rfds, NULL, &efds, tvp); 4773 ret = select(maxfd + 1, &rfds, NULL, &efds, tvp);
4772 # endif 4774 # endif
4775 # ifdef __TANDEM
4776 if (ret == -1 && errno == ENOTSUP)
4777 {
4778 FD_ZERO(&rfds);
4779 FD_ZERO(&efds);
4780 ret = 0;
4781 }
4782 #endif
4773 # ifdef FEAT_MZSCHEME 4783 # ifdef FEAT_MZSCHEME
4774 if (ret == 0 && mzquantum_used) 4784 if (ret == 0 && mzquantum_used)
4775 /* loop if MzThreads must be scheduled and timeout occured */ 4785 /* loop if MzThreads must be scheduled and timeout occured */
4776 finished = FALSE; 4786 finished = FALSE;
4777 # endif 4787 # endif