diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2017-06-09 01:01:21 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2017-06-09 01:01:21 +0300 |
commit | 6c61bfaf1de3ac5eb6105ab7c46efda8bcf16b17 (patch) | |
tree | 34f4c604b2d283d52ff21651ae02012f851d123e /src/atomic_ops.c | |
parent | d0bbf851dfcacab57dc0f2e588bd90f5c20a6a67 (diff) | |
download | libatomic_ops-6c61bfaf1de3ac5eb6105ab7c46efda8bcf16b17.tar.gz |
Fix 'missing select.h', 'undefined sigprocmask' compiler errors (Hexagon)
* src/atomic_ops.c [__hexagon__ && !AO_USE_NO_SIGNALS
&& !AO_USE_NANOSLEEP] (AO_USE_NO_SIGNALS, AO_USE_NANOSLEEP): Define;
add comment.
Diffstat (limited to 'src/atomic_ops.c')
-rw-r--r-- | src/atomic_ops.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/atomic_ops.c b/src/atomic_ops.c index 4be37b6..9d06935 100644 --- a/src/atomic_ops.c +++ b/src/atomic_ops.c @@ -32,8 +32,10 @@ # include "config.h" #endif -#if defined(__native_client__) && !defined(AO_USE_NO_SIGNALS) \ - && !defined(AO_USE_NANOSLEEP) +#if (defined(__hexagon__) || defined(__native_client__)) \ + && !defined(AO_USE_NO_SIGNALS) && !defined(AO_USE_NANOSLEEP) + /* Hexagon QuRT does not have sigprocmask (but Hexagon does not need */ + /* emulation, so it is OK not to bother about signals blocking). */ /* Since NaCl is not recognized by configure yet, we do it here. */ # define AO_USE_NO_SIGNALS # define AO_USE_NANOSLEEP |