Index: native_client_sdk/src/libraries/nacl_io/syscalls/signal.c |
diff --git a/native_client_sdk/src/libraries/nacl_io/syscalls/signal.c b/native_client_sdk/src/libraries/nacl_io/syscalls/signal.c |
index a111add8938f9cbe3f301cb44c700452332bc275..2ac16e317dbc2ee39f0527193dc561789444dc52 100644 |
--- a/native_client_sdk/src/libraries/nacl_io/syscalls/signal.c |
+++ b/native_client_sdk/src/libraries/nacl_io/syscalls/signal.c |
@@ -2,9 +2,32 @@ |
* Use of this source code is governed by a BSD-style license that can be |
* found in the LICENSE file. */ |
+#include <sys/types.h> |
+/* |
+ * Include something that will define __BIONIC__, then wrap the entire file |
+ * in this #if, so this file will be compiled on a non-bionic build. |
+ */ |
+ |
Sam Clegg
2014/03/27 00:10:02
Comment is not true.
noelallen1
2014/03/27 18:13:48
Done.
|
+ |
#include "nacl_io/kernel_intercept.h" |
#include "nacl_io/kernel_wrap.h" |
+#if !defined(__BIONIC__) |
+ |
sighandler_t signal(int signum, sighandler_t handler) { |
return ki_signal(signum, handler); |
} |
+ |
+#else |
+ |
+sighandler_t sysv_signal(int signum, sighandler_t handler) |
+{ |
+ return ki_signal(signum, handler); |
+} |
+ |
+ |
+sighandler_t bsd_signal(int signum, sighandler_t handler) { |
+ return ki_signal(signum, handler); |
+} |
+ |
+#endif /* #if !defined(__BIONIC_) */ |