]> granicus.if.org Git - libatomic_ops/commitdiff
Fix 'missing select.h', 'undefined sigprocmask' compiler errors (Hexagon)
authorIvan Maidanski <ivmai@mail.ru>
Thu, 8 Jun 2017 22:01:21 +0000 (01:01 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 20 Sep 2017 07:47:33 +0000 (10:47 +0300)
* src/atomic_ops.c [__hexagon__ && !AO_USE_NO_SIGNALS
&& !AO_USE_NANOSLEEP] (AO_USE_NO_SIGNALS, AO_USE_NANOSLEEP): Define;
add comment.

src/atomic_ops.c

index 4be37b6ffabbfc58fab32a40249c9850318d4e70..9d06935dcd8f519e992294ff2410f123377b3955 100644 (file)
 # 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