summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2017-04-18 20:49:09 +0000
committerChris Bieneman <beanz@apple.com>2017-04-18 20:49:09 +0000
commit7879598d753c7630e700bb912016bf229ef9c8b0 (patch)
tree69e8a7dcf1ea36c163e20f8ec5b5c013fa38ddb8
parent38fdb72ca99ef4bef68290e92ef855d1f7add6e9 (diff)
downloadbcm5719-llvm-7879598d753c7630e700bb912016bf229ef9c8b0.tar.gz
bcm5719-llvm-7879598d753c7630e700bb912016bf229ef9c8b0.zip
[CMake] Adding configure-time check for sigaction
Hopefully this will fix the netbsd bot that I broke... llvm-svn: 300590
-rw-r--r--lldb/cmake/modules/LLDBConfig.cmake1
-rw-r--r--lldb/include/lldb/Host/Config.h.cmake2
-rw-r--r--lldb/include/lldb/Host/MainLoop.h2
3 files changed, 4 insertions, 1 deletions
diff --git a/lldb/cmake/modules/LLDBConfig.cmake b/lldb/cmake/modules/LLDBConfig.cmake
index 5911619535e..5e64c177ec0 100644
--- a/lldb/cmake/modules/LLDBConfig.cmake
+++ b/lldb/cmake/modules/LLDBConfig.cmake
@@ -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)
diff --git a/lldb/include/lldb/Host/Config.h.cmake b/lldb/include/lldb/Host/Config.h.cmake
index 4264c9240b7..5a16425fe0a 100644
--- a/lldb/include/lldb/Host/Config.h.cmake
+++ b/lldb/include/lldb/Host/Config.h.cmake
@@ -18,4 +18,6 @@
#cmakedefine01 HAVE_PPOLL
+#cmakedefine01 HAVE_SIGACTION
+
#endif // #ifndef LLDB_HOST_CONFIG_H
diff --git a/lldb/include/lldb/Host/MainLoop.h b/lldb/include/lldb/Host/MainLoop.h
index 1168b421e76..3ecad3afd14 100644
--- a/lldb/include/lldb/Host/MainLoop.h
+++ b/lldb/include/lldb/Host/MainLoop.h
@@ -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;
OpenPOWER on IntegriCloud