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

Unified Diff: ports/glibc-compat/include/sys/types.h

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/include/sys/stat.h ('k') | ports/glibc-compat/include/sys/un.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ports/glibc-compat/include/sys/types.h
diff --git a/ports/glibc-compat/include/sys/types.h b/ports/glibc-compat/include/sys/types.h
index 8835c4d1765e91f200f881349eaf1a7b9479a312..6d2f06311c04201d464100352edd0d163603c1b8 100644
--- a/ports/glibc-compat/include/sys/types.h
+++ b/ports/glibc-compat/include/sys/types.h
@@ -23,6 +23,10 @@ typedef int32_t _ssize_t;
#include <limits.h>
#define SSIZE_MAX LONG_MAX
+#ifndef MAXHOSTNAMELEN
+#define MAXHOSTNAMELEN 64
+#endif
+
#include_next <sys/types.h>
/* TODO(sbc): Remove these once they get added to newlib headers */
« no previous file with comments | « ports/glibc-compat/include/sys/stat.h ('k') | ports/glibc-compat/include/sys/un.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698