forked from OSchip/llvm-project
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:
parent
e61ca35463
commit
4ce010e775
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue