Signal polling is supported with pselect (re-land r313704 without a Windows breakage)

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

llvm-svn: 313726
This commit is contained in:
Eugene Zemtsov 2017-09-20 06:56:46 +00:00
parent 30c93dba5b
commit e768daad6e
2 changed files with 5 additions and 5 deletions

View File

@ -15,7 +15,11 @@
#include "llvm/ADT/DenseMap.h"
#include <csignal>
#if !HAVE_PPOLL && !HAVE_SYS_EVENT_H
#ifdef __ANDROID__
#define FORCE_PSELECT
#endif
#if !HAVE_PPOLL && !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;