summaryrefslogtreecommitdiff
path: root/src/vim.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-03-10 16:12:48 +0100
committerBram Moolenaar <Bram@vim.org>2010-03-10 16:12:48 +0100
commit581f6dc94d8177ff1d826d4414ed15288d9fd800 (patch)
treecb539154da6e4c2f8f4e01f0bd31e9a9ba6c2f71 /src/vim.h
parent37d619f896bb425a0e82199977ab9069434c9b1d (diff)
downloadvim-git-581f6dc94d8177ff1d826d4414ed15288d9fd800.tar.gz
updated for version 7.2.392v7.2.392
Problem: Netbeans hangs reading from a socket at the maximum block size. Solution: Use select() or poll(). (Xavier de Gaye)
Diffstat (limited to 'src/vim.h')
-rw-r--r--src/vim.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/vim.h b/src/vim.h
index d22227cf9..b6b4e1e9b 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -477,6 +477,23 @@ typedef unsigned long u8char_T; /* long should be 32 bits or more */
# 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 =============== */
/*