Mercurial > vim
comparison src/os_unixx.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 | c6245a087950 |
children | 4aead6a9b7a9 |
comparison
equal
deleted
inserted
replaced
2108:3cdf2a653e00 | 2109:6c3c2e464a96 |
---|---|
24 | 24 |
25 #ifndef USE_SYSTEM /* use fork/exec to start the shell */ | 25 #ifndef USE_SYSTEM /* use fork/exec to start the shell */ |
26 | 26 |
27 # if defined(HAVE_SYS_WAIT_H) || defined(HAVE_UNION_WAIT) | 27 # if defined(HAVE_SYS_WAIT_H) || defined(HAVE_UNION_WAIT) |
28 # include <sys/wait.h> | 28 # include <sys/wait.h> |
29 # endif | |
30 | |
31 # if defined(HAVE_SYS_SELECT_H) && \ | |
32 (!defined(HAVE_SYS_TIME_H) || defined(SYS_SELECT_WITH_SYS_TIME)) | |
33 # include <sys/select.h> | |
34 # endif | 29 # endif |
35 | 30 |
36 # ifndef WEXITSTATUS | 31 # ifndef WEXITSTATUS |
37 # ifdef HAVE_UNION_WAIT | 32 # ifdef HAVE_UNION_WAIT |
38 # define WEXITSTATUS(stat_val) ((stat_val).w_T.w_Retcode) | 33 # define WEXITSTATUS(stat_val) ((stat_val).w_T.w_Retcode) |
61 #endif | 56 #endif |
62 #endif | 57 #endif |
63 | 58 |
64 #ifdef HAVE_STRING_H | 59 #ifdef HAVE_STRING_H |
65 # include <string.h> | 60 # include <string.h> |
66 #endif | |
67 | |
68 #ifndef HAVE_SELECT | |
69 # ifdef HAVE_SYS_POLL_H | |
70 # include <sys/poll.h> | |
71 # else | |
72 # ifdef HAVE_POLL_H | |
73 # include <poll.h> | |
74 # endif | |
75 # endif | |
76 #endif | 61 #endif |
77 | 62 |
78 #ifdef HAVE_SYS_STREAM_H | 63 #ifdef HAVE_SYS_STREAM_H |
79 # include <sys/stream.h> | 64 # include <sys/stream.h> |
80 #endif | 65 #endif |