Mercurial > vim
diff src/vim.h @ 2109:6c3c2e464a96 v7.2.392
updated for version 7.2.392
Problem: Netbeans hangs reading from a socket at the maximum block size.
Solution: Use select() or poll(). (Xavier de Gaye)
author | Bram Moolenaar <bram@zimbu.org> |
---|---|
date | Wed, 10 Mar 2010 16:12:48 +0100 |
parents | 8f72e3512b43 |
children | 90cfcd6b0799 |
line wrap: on
line diff
--- a/src/vim.h +++ b/src/vim.h @@ -477,6 +477,23 @@ typedef unsigned long u8char_T; /* l # include <stdarg.h> #endif +# if defined(HAVE_SYS_SELECT_H) && \ + (!defined(HAVE_SYS_TIME_H) || defined(SYS_SELECT_WITH_SYS_TIME)) +# include <sys/select.h> +# endif + +# ifndef HAVE_SELECT +# ifdef HAVE_SYS_POLL_H +# include <sys/poll.h> +# define HAVE_POLL +# else +# ifdef HAVE_POLL_H +# include <poll.h> +# define HAVE_POLL +# endif +# endif +# endif + /* ================ end of the header file puzzle =============== */ /*