aboutsummaryrefslogtreecommitdiffstats
path: root/dumpcap.c
diff options
context:
space:
mode:
authortuexen <tuexen@f5534014-38df-0310-8fa8-9805f1628bb7>2011-07-15 14:31:27 +0000
committertuexen <tuexen@f5534014-38df-0310-8fa8-9805f1628bb7>2011-07-15 14:31:27 +0000
commit2d4ab8152ffe90bb3bd73862f2a2cfa8808b8472 (patch)
treeb8dafced52d2658acdf00bdd2c0591f80640d442 /dumpcap.c
parent7440474c4c81628d5f35ae9fecb72165bb89ebde (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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dumpcap.c b/dumpcap.c
index ec8389034c..e464d28f53 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -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