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

Unified Diff: native_client_sdk/src/libraries/nacl_io/syscalls/uname.c

Issue 176923017: [NaCl SDK] Compile for naclio for Bionic (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix bug in h_error Created 6 years, 9 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
Index: native_client_sdk/src/libraries/nacl_io/syscalls/uname.c
diff --git a/native_client_sdk/src/libraries/nacl_io/syscalls/uname.c b/native_client_sdk/src/libraries/nacl_io/syscalls/uname.c
index 293b989ee4c47b30bd007c5dd82645de8dbd9630..19a822b14f85fa77d5d94a9669a71be3c53018fa 100644
--- a/native_client_sdk/src/libraries/nacl_io/syscalls/uname.c
+++ b/native_client_sdk/src/libraries/nacl_io/syscalls/uname.c
@@ -6,6 +6,10 @@
#include <string.h>
#include <sys/utsname.h>
+#if !defined(_UTSNAME_LENGTH) && defined(__BIONIC__)
+#define _UTSNAME_LENGTH SYS_NMLN
+#endif
+
int uname(struct utsname* buf) {
memset(buf, 0, sizeof(struct utsname));
snprintf(buf->sysname, _UTSNAME_LENGTH, "NaCl");
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/syscalls/tcsetattr.c ('k') | native_client_sdk/src/libraries/ppapi_simple/library.dsc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698