summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2017-06-09 01:01:21 +0300
committerIvan Maidanski <ivmai@mail.ru>2017-12-12 10:27:39 +0300
commit6e2522db207533b973c35e02d31fc2480b80e489 (patch)
tree28048965421181ca3710557ad9267006b2ece3d8
parentd8980d7f981a0503e841674a16fa559d448aaa32 (diff)
downloadlibatomic_ops-6e2522db207533b973c35e02d31fc2480b80e489.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.
-rw-r--r--src/atomic_ops.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/atomic_ops.c b/src/atomic_ops.c
index 6ed2a78..7e233d1 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