[Lldb-commits] [lldb] r300590 - [CMake] Adding configure-time check for sigaction
Chris Bieneman via lldb-commits
lldb-commits at lists.llvm.org
Tue Apr 18 13:49:09 PDT 2017
Author: cbieneman
Date: Tue Apr 18 15:49:09 2017
New Revision: 300590
URL: http://llvm.org/viewvc/llvm-project?rev=300590&view=rev
Log:
[CMake] Adding configure-time check for sigaction
Hopefully this will fix the netbsd bot that I broke...
Modified:
lldb/trunk/cmake/modules/LLDBConfig.cmake
lldb/trunk/include/lldb/Host/Config.h.cmake
lldb/trunk/include/lldb/Host/MainLoop.h
Modified: lldb/trunk/cmake/modules/LLDBConfig.cmake
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/cmake/modules/LLDBConfig.cmake?rev=300590&r1=300589&r2=300590&view=diff
==============================================================================
--- lldb/trunk/cmake/modules/LLDBConfig.cmake (original)
+++ lldb/trunk/cmake/modules/LLDBConfig.cmake Tue Apr 18 15:49:09 2017
@@ -433,6 +433,7 @@ endif()
find_package(Backtrace)
check_symbol_exists(ppoll poll.h HAVE_PPOLL)
+check_symbol_exists(sigaction signal.h HAVE_SIGACTION)
check_include_file(termios.h HAVE_TERMIOS_H)
Modified: lldb/trunk/include/lldb/Host/Config.h.cmake
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Host/Config.h.cmake?rev=300590&r1=300589&r2=300590&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Host/Config.h.cmake (original)
+++ lldb/trunk/include/lldb/Host/Config.h.cmake Tue Apr 18 15:49:09 2017
@@ -18,4 +18,6 @@
#cmakedefine01 HAVE_PPOLL
+#cmakedefine01 HAVE_SIGACTION
+
#endif // #ifndef LLDB_HOST_CONFIG_H
Modified: lldb/trunk/include/lldb/Host/MainLoop.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Host/MainLoop.h?rev=300590&r1=300589&r2=300590&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Host/MainLoop.h (original)
+++ lldb/trunk/include/lldb/Host/MainLoop.h Tue Apr 18 15:49:09 2017
@@ -88,7 +88,7 @@ private:
struct SignalInfo {
Callback callback;
-#if !SIGNAL_POLLING_UNSUPPORTED
+#if HAVE_SIGACTION
struct sigaction old_action;
#endif
bool was_blocked : 1;
More information about the lldb-commits
mailing list