Index: ports/xtrans/nacl.patch |
diff --git a/ports/xtrans/nacl.patch b/ports/xtrans/nacl.patch |
index e228bc6dd0c487f1c5c9b87508390f8a1ea3c71c..a311b1c1effbc6e7ae6857e325d8182ea26e0589 100644 |
--- a/ports/xtrans/nacl.patch |
+++ b/ports/xtrans/nacl.patch |
@@ -1,45 +1,3 @@ |
-diff --git a/Xtrans.c b/Xtrans.c |
---- a/Xtrans.c |
-+++ b/Xtrans.c |
-@@ -1253,7 +1253,7 @@ TRANS(MakeAllCLTSServerListeners) (char *port, int *partial, int *count_ret, |
- */ |
- |
- |
--#if defined(SYSV) && defined(__i386__) && !defined(__SCO__) && !defined(sun) || defined(WIN32) |
-+#if defined(SYSV) && defined(__i386__) && !defined(__SCO__) && !defined(sun) || defined(WIN32) || (defined(__native_client__) && defined(_NEWLIB_VERSION)) |
- |
- /* |
- * emulate readv |
-@@ -1285,7 +1285,7 @@ static int TRANS(ReadV) (XtransConnInfo ciptr, struct iovec *iov, int iovcnt) |
- |
- #endif /* SYSV && __i386__ || WIN32 || __sxg__ */ |
- |
--#if defined(SYSV) && defined(__i386__) && !defined(__SCO__) && !defined(sun) || defined(WIN32) |
-+#if defined(SYSV) && defined(__i386__) && !defined(__SCO__) && !defined(sun) || defined(WIN32) || (defined(__native_client__) && defined(_NEWLIB_VERSION)) |
- |
- /* |
- * emulate writev |
-diff --git a/Xtransint.h b/Xtransint.h |
---- a/Xtransint.h |
-+++ b/Xtransint.h |
-@@ -325,7 +325,7 @@ typedef struct _Xtransport_table { |
- * systems, so they may be emulated. |
- */ |
- |
--#if defined(SYSV) && defined(__i386__) && !defined(__SCO__) && !defined(sun) || defined(WIN32) |
-+#if defined(SYSV) && defined(__i386__) && !defined(__SCO__) && !defined(sun) || defined(WIN32) || (defined(__native_client__) && defined(_NEWLIB_VERSION)) |
- |
- #define READV(ciptr, iov, iovcnt) TRANS(ReadV)(ciptr, iov, iovcnt) |
- |
-@@ -342,7 +342,7 @@ static int TRANS(ReadV)( |
- #endif /* CRAY || (SYSV && __i386__) || WIN32 || __sxg__ || */ |
- |
- |
--#if defined(SYSV) && defined(__i386__) && !defined(__SCO__) && !defined(sun) || defined(WIN32) |
-+#if defined(SYSV) && defined(__i386__) && !defined(__SCO__) && !defined(sun) || defined(WIN32) || (defined(__native_client__) && defined(_NEWLIB_VERSION)) |
- |
- #define WRITEV(ciptr, iov, iovcnt) TRANS(WriteV)(ciptr, iov, iovcnt) |
- |
diff --git a/Xtranslcl.c b/Xtranslcl.c |
--- a/Xtranslcl.c |
+++ b/Xtranslcl.c |