[vlc-devel] [PATCH 03/15] nacl: Do not use signals
Julian Scheel
julian at jusst.de
Wed Mar 8 15:55:20 CET 2017
The Native Client implementation does not support signals. Thus
vlc_writev can not use signals. Just call writev directly for now.
Signed-off-by: Julian Scheel <julian at jusst.de>
---
src/posix/filesystem.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/posix/filesystem.c b/src/posix/filesystem.c
index 0a7f0a7ccb..f4d0e2691f 100644
--- a/src/posix/filesystem.c
+++ b/src/posix/filesystem.c
@@ -240,6 +240,12 @@ ssize_t vlc_write(int fd, const void *buf, size_t len)
return vlc_writev(fd, &iov, 1);
}
+#ifdef __native_client__
+ssize_t vlc_writev(int fd, const struct iovec *iov, int count)
+{
+ return writev(fd, iov, count);
+}
+#else
ssize_t vlc_writev(int fd, const struct iovec *iov, int count)
{
sigset_t set, oset;
@@ -276,6 +282,7 @@ ssize_t vlc_writev(int fd, const struct iovec *iov, int count)
pthread_sigmask(SIG_SETMASK, &oset, NULL);
return val;
}
+#endif
#include <vlc_network.h>
--
2.12.0
More information about the vlc-devel
mailing list