Signal polling is supported with pselect

Older Android API levels don't have ppoll, but LLDB works just fine,
since on Android it always uses pselect anyway.

llvm-svn: 313704
This commit is contained in:
Eugene Zemtsov 2017-09-20 00:39:04 +00:00
parent e61ca35463
commit 4ce010e775
2 changed files with 6 additions and 5 deletions

View File

@ -15,7 +15,12 @@
#include "llvm/ADT/DenseMap.h"
#include <csignal>
#if !HAVE_PPOLL && !HAVE_SYS_EVENT_H
#ifdef __ANDROID__
#define FORCE_PSELECT
#endif
#if !defined(HAVE_PPOLL) && !defined(HAVE_SYS_EVENT_H) && \
!defined(FORCE_PSELECT)
#define SIGNAL_POLLING_UNSUPPORTED 1
#endif

View File

@ -38,10 +38,6 @@
#define POLL poll
#endif
#ifdef __ANDROID__
#define FORCE_PSELECT
#endif
#if SIGNAL_POLLING_UNSUPPORTED
#ifdef LLVM_ON_WIN32
typedef int sigset_t;