Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(222)

Unified Diff: ports/glibc-compat/src/herror.c

Issue 1260083004: Add needed functions to glibc-compat for pkg (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: fix wrong c++ lib Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ports/glibc-compat/src/fts.c ('k') | ports/glibc-compat/src/libc-symbols.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ports/glibc-compat/src/herror.c
diff --git a/ports/glibc-compat/src/herror.c b/ports/glibc-compat/src/herror.c
index 0859d1f73b250510b1baae8cfe38410774d2ec9d..5a9e9f1f6f7cf12b96715946b49350f31b727be9 100644
--- a/ports/glibc-compat/src/herror.c
+++ b/ports/glibc-compat/src/herror.c
@@ -84,15 +84,6 @@ herror(const char *s) {
v++;
v->iov_base = "\n";
v->iov_len = 1;
-#ifndef writev
-#define writev(fd, iov, iovcnt) \
- do { \
- int i; \
- for (i = 0; i < (iovcnt); ++i) { \
- write((fd), (iov)[i].iov_base, (iov)[i].iov_len); \
- } \
- } while (0)
-#endif
writev(STDERR_FILENO, iov, (v - iov) + 1);
}
« no previous file with comments | « ports/glibc-compat/src/fts.c ('k') | ports/glibc-compat/src/libc-symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698