<div dir="ltr">Actually, Windows does have `struct timespec`.  It's defined in `<time.h>` and `<ctime>`.<div><br></div><div><a href="https://msdn.microsoft.com/en-us/library/mt633792.aspx">https://msdn.microsoft.com/en-us/library/mt633792.aspx</a><br></div><div><br></div><div>I suspect somebody had suppressed it for some reason.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 18, 2017 at 2:47 PM, Chris Bieneman via lldb-commits <span dir="ltr"><<a href="mailto:lldb-commits@lists.llvm.org" target="_blank">lldb-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: cbieneman<br>
Date: Tue Apr 18 16:47:50 2017<br>
New Revision: 300610<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=300610&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project?rev=300610&view=rev</a><br>
Log:<br>
Fix Windows bot failure<br>
<br>
timespec is not available on Windows, and we should use size_t instead of nfds_t.<br>
<br>
Modified:<br>
    lldb/trunk/source/Host/common/<wbr>MainLoop.cpp<br>
<br>
Modified: lldb/trunk/source/Host/common/<wbr>MainLoop.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/MainLoop.cpp?rev=300610&r1=300609&r2=300610&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project/lldb/trunk/source/<wbr>Host/common/MainLoop.cpp?rev=<wbr>300610&r1=300609&r2=300610&<wbr>view=diff</a><br>
==============================<wbr>==============================<wbr>==================<br>
--- lldb/trunk/source/Host/common/<wbr>MainLoop.cpp (original)<br>
+++ lldb/trunk/source/Host/common/<wbr>MainLoop.cpp Tue Apr 18 16:47:50 2017<br>
@@ -33,7 +33,14 @@<br>
<br>
 #if !HAVE_PPOLL && !HAVE_SYS_EVENT_H<br>
<br>
-int ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *timeout_ts,<br>
+#ifdef LLVM_ON_WIN32<br>
+struct timespec {<br>
+  time_t       tv_sec;<br>
+  suseconds_t  tv_nsec;<br>
+};<br>
+#endif<br>
+<br>
+int ppoll(struct pollfd *fds, size_t nfds, const struct timespec *timeout_ts,<br>
           const sigset_t *) {<br>
   int timeout =<br>
       (timeout_ts == nullptr)<br>
<br>
<br>
______________________________<wbr>_________________<br>
lldb-commits mailing list<br>
<a href="mailto:lldb-commits@lists.llvm.org">lldb-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/lldb-commits</a><br>
</blockquote></div><br></div>