diff options
author | tuexen <tuexen@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-07-15 14:31:27 +0000 |
---|---|---|
committer | tuexen <tuexen@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-07-15 14:31:27 +0000 |
commit | 2d4ab8152ffe90bb3bd73862f2a2cfa8808b8472 (patch) | |
tree | b8dafced52d2658acdf00bdd2c0591f80640d442 /dumpcap.c | |
parent | 7440474c4c81628d5f35ae9fecb72165bb89ebde (diff) |
Fix compilation on non-windows platforms defining USE_THREADS.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38044 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'dumpcap.c')
-rw-r--r-- | dumpcap.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1637,6 +1637,7 @@ static void *cap_pipe_read(void *arg) } #endif /* USE_THREADS */ +#if !defined(USE_THREADS) || defined(MUST_DO_SELECT) /* Provide select() functionality for a single file descriptor * on UNIX/POSIX. Windows uses cap_pipe_read via a thread. * @@ -1656,6 +1657,7 @@ cap_pipe_select(int pipe_fd) return select(pipe_fd+1, &rfds, NULL, NULL, &timeout); } +#endif /* Mimic pcap_open_live() for pipe captures |