[CMake] Add configure check for sys/event.h
authorChris Bieneman <beanz@apple.com>
Wed, 19 Apr 2017 02:53:53 +0000 (02:53 +0000)
committerChris Bieneman <beanz@apple.com>
Wed, 19 Apr 2017 02:53:53 +0000 (02:53 +0000)
This enables the kqueue path in MainLoop for Darwin and BSD.

llvm-svn: 300654

lldb/cmake/modules/LLDBConfig.cmake

index 5e64c17..adf7828 100644 (file)
@@ -436,6 +436,7 @@ check_symbol_exists(ppoll poll.h HAVE_PPOLL)
 check_symbol_exists(sigaction signal.h HAVE_SIGACTION)
 
 check_include_file(termios.h HAVE_TERMIOS_H)
+check_include_file(sys/event.h HAVE_SYS_EVENT_H)
 
 # These checks exist in LLVM's configuration, so I want to match the LLVM names
 # so that the check isn't duplicated, but we translate them into the LLDB names