Author: cbieneman
Date: Tue Apr 18 15:37:05 2017
New Revision: 300587

URL: http://llvm.org/viewvc/llvm-project?rev=300587&view=rev
Log:
Fix broken windows build.

This is not ideal, but it should get the bot going again. I'll need to revisit 
this if we want to get signal handling working on Windows.

Modified:
    lldb/trunk/include/lldb/Host/MainLoop.h
    lldb/trunk/source/Host/common/MainLoop.cpp

Modified: lldb/trunk/include/lldb/Host/MainLoop.h
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Host/MainLoop.h?rev=300587&r1=300586&r2=300587&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Host/MainLoop.h (original)
+++ lldb/trunk/include/lldb/Host/MainLoop.h Tue Apr 18 15:37:05 2017
@@ -10,10 +10,15 @@
 #ifndef lldb_Host_MainLoop_h_
 #define lldb_Host_MainLoop_h_
 
+#include "lldb/Host/Config.h"
 #include "lldb/Host/MainLoopBase.h"
 
 #include "llvm/ADT/DenseMap.h"
 
+#if !HAVE_PPOLL && !HAVE_SYS_EVENT_H
+#define SIGNAL_POLLING_UNSUPPORTED 1
+#endif
+
 namespace lldb_private {
 
 // Implementation of the MainLoopBase class. It can monitor file descriptors 
for
@@ -83,7 +88,9 @@ private:
 
   struct SignalInfo {
     Callback callback;
+#if !SIGNAL_POLLING_UNSUPPORTED
     struct sigaction old_action;
+#endif
     bool was_blocked : 1;
   };
 

Modified: lldb/trunk/source/Host/common/MainLoop.cpp
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/MainLoop.cpp?rev=300587&r1=300586&r2=300587&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/MainLoop.cpp (original)
+++ lldb/trunk/source/Host/common/MainLoop.cpp Tue Apr 18 15:37:05 2017
@@ -33,7 +33,6 @@
 #endif
 
 #if !HAVE_PPOLL && !HAVE_SYS_EVENT_H
-#define SIGNAL_POLLING_UNSUPPORTED 1
 
 int ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *timeout_ts,
           const sigset_t *) {


_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to