diff options
author | Bram Moolenaar <Bram@vim.org> | 2007-02-27 15:48:28 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2007-02-27 15:48:28 +0000 |
commit | 311d982b6fbcad0cbbc7ca4358a0cd580b16fbc0 (patch) | |
tree | 9fac6a814447866636599c5b52c828f6348ae772 /src/os_unix.c | |
parent | 602eb74de6245dcad1ec77e919a7597789ef1c0e (diff) | |
download | vim-git-311d982b6fbcad0cbbc7ca4358a0cd580b16fbc0.tar.gz |
updated for version 7.0-202v7.0.202
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 639ef3127..5e8f0cbbc 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -25,7 +25,7 @@ * Don't use it for the Mac, it causes a warning for precompiled headers. * TODO: use a configure check for precompiled headers? */ -#ifndef __APPLE__ +#if !defined(__APPLE__) && !defined(__TANDEM) # define select select_declared_wrong #endif @@ -48,9 +48,11 @@ /* * Use this prototype for select, some include files have a wrong prototype */ -#undef select -#ifdef __BEOS__ -# define select beos_select +#ifndef __TANDEM +# undef select +# ifdef __BEOS__ +# define select beos_select +# endif #endif #if defined(HAVE_SELECT) @@ -4770,6 +4772,14 @@ RealWaitForChar(fd, msec, check_for_gpm) # else ret = select(maxfd + 1, &rfds, NULL, &efds, tvp); # endif +# ifdef __TANDEM + if (ret == -1 && errno == ENOTSUP) + { + FD_ZERO(&rfds); + FD_ZERO(&efds); + ret = 0; + } +#endif # ifdef FEAT_MZSCHEME if (ret == 0 && mzquantum_used) /* loop if MzThreads must be scheduled and timeout occured */ |