diff options
author | Chris Bieneman <beanz@apple.com> | 2017-04-18 21:47:50 +0000 |
---|---|---|
committer | Chris Bieneman <beanz@apple.com> | 2017-04-18 21:47:50 +0000 |
commit | 399249a2975af8d8217c76e0b633cce8e14a7dd3 (patch) | |
tree | ecb649aa59776b7983498e945d995d30df2cc127 | |
parent | 4c132e576bbd9ad90904ec4ca385cbd7ae06ded2 (diff) | |
download | bcm5719-llvm-399249a2975af8d8217c76e0b633cce8e14a7dd3.tar.gz bcm5719-llvm-399249a2975af8d8217c76e0b633cce8e14a7dd3.zip |
Fix Windows bot failure
timespec is not available on Windows, and we should use size_t instead of nfds_t.
llvm-svn: 300610
-rw-r--r-- | lldb/source/Host/common/MainLoop.cpp | 9 |
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) |