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

Unified Diff: src/trusted/service_runtime/include/sys/time.h

Issue 1235633004: DON'T USE THIS -- Providing some missing POSIX File syscalls. (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: 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
Index: src/trusted/service_runtime/include/sys/time.h
diff --git a/src/trusted/service_runtime/include/sys/time.h b/src/trusted/service_runtime/include/sys/time.h
index 3a77377d1651a12b33c57e5cc51eced24570f543..b16f270a67c8aa43d93900a0d9d9b6c30b62b52d 100644
--- a/src/trusted/service_runtime/include/sys/time.h
+++ b/src/trusted/service_runtime/include/sys/time.h
@@ -11,6 +11,7 @@
#ifndef NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_INCLUDE_SYS_TIME_H_
#define NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_INCLUDE_SYS_TIME_H_
+#include "native_client/src/include/build_config.h"
#include "native_client/src/trusted/service_runtime/include/machine/_types.h"
#ifdef __cplusplus
@@ -31,10 +32,17 @@ typedef int32_t nacl_abi_suseconds_t;
typedef long int nacl_abi_clock_t; /* to be deprecated */
#endif
+#if NACL_WINDOWS
+__declspec(align(8))
+#endif
struct nacl_abi_timeval {
nacl_abi_time_t nacl_abi_tv_sec;
nacl_abi_suseconds_t nacl_abi_tv_usec;
+#if NACL_WINDOWS
};
+#else
+} __attribute__((aligned(8)));
+#endif
/* obsolete. should not be used */
struct nacl_abi_timezone {
« no previous file with comments | « src/trusted/service_runtime/include/bits/nacl_syscalls.h ('k') | src/trusted/service_runtime/include/sys/unistd.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698