[Lldb-commits] [lldb] r300615 - Include time.h, and fix a Darwin warning
Chris Bieneman via lldb-commits
lldb-commits at lists.llvm.org
Tue Apr 18 15:11:13 PDT 2017
Author: cbieneman
Date: Tue Apr 18 17:11:13 2017
New Revision: 300615
URL: http://llvm.org/viewvc/llvm-project?rev=300615&view=rev
Log:
Include time.h, and fix a Darwin warning
This is a little more cleanup from r300579.
Modified:
lldb/trunk/source/Host/common/MainLoop.cpp
Modified: lldb/trunk/source/Host/common/MainLoop.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/MainLoop.cpp?rev=300615&r1=300614&r2=300615&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/MainLoop.cpp (original)
+++ lldb/trunk/source/Host/common/MainLoop.cpp Tue Apr 18 17:11:13 2017
@@ -16,6 +16,7 @@
#include <cerrno>
#include <csignal>
#include <vector>
+#include <time.h>
#if HAVE_SYS_EVENT_H
#include <sys/event.h>
@@ -33,13 +34,6 @@
#if !HAVE_PPOLL && !HAVE_SYS_EVENT_H
-#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 =
@@ -160,7 +154,6 @@ void MainLoop::UnregisterSignal(int sign
Error MainLoop::Run() {
std::vector<int> signals;
- sigset_t sigmask;
m_terminate_request = false;
signals.reserve(m_signals.size());
@@ -172,6 +165,7 @@ Error MainLoop::Run() {
std::vector<struct kevent> events;
events.reserve(m_read_fds.size() + m_signals.size());
#else
+ sigset_t sigmask;
std::vector<struct pollfd> read_fds;
read_fds.reserve(m_read_fds.size());
#endif
More information about the lldb-commits
mailing list