summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/source/Host/common/MainLoop.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/lldb/source/Host/common/MainLoop.cpp b/lldb/source/Host/common/MainLoop.cpp
index d3388577460..d7036d769b9 100644
--- a/lldb/source/Host/common/MainLoop.cpp
+++ b/lldb/source/Host/common/MainLoop.cpp
@@ -33,7 +33,14 @@
#if !HAVE_PPOLL && !HAVE_SYS_EVENT_H
-int ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *timeout_ts,
+#ifdef LLVM_ON_WIN32
+struct timespec {
+ time_t tv_sec;
+ suseconds_t tv_nsec;
+};
+#endif
+
+int ppoll(struct pollfd *fds, size_t nfds, const struct timespec *timeout_ts,
const sigset_t *) {
int timeout =
(timeout_ts == nullptr)
OpenPOWER on IntegriCloud