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 08:10:48 +0000 (11:10 +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 636d9ce..a84c9f3 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