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

Unified Diff: native_client_sdk/src/libraries/nacl_io/ostime.h

Issue 19271009: [NaCl SDK} Add EventListener and EventEmitter to support epoll. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remerge Created 7 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: native_client_sdk/src/libraries/nacl_io/ostime.h
diff --git a/native_client_sdk/src/libraries/nacl_io/ostime.h b/native_client_sdk/src/libraries/nacl_io/ostime.h
new file mode 100644
index 0000000000000000000000000000000000000000..a3a92a4a1ef5585255194ca4b548122bbde16849
--- /dev/null
+++ b/native_client_sdk/src/libraries/nacl_io/ostime.h
@@ -0,0 +1,26 @@
+/* Copyright (c) 2013 The Chromium Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+#ifndef LIBRARIES_NACL_IO_OSTIME_H_
+#define LIBRARIES_NACL_IO_OSTIME_H_
+
+#if defined(WIN32)
+
+#include <pthread.h>
+
+#ifndef CLOCK_REALTIME
+#define CLOCK_REALTIME (clockid_t) 1
+#endif
+
+int clock_gettime(clockid_t clock_id, struct timespec *tp);
+int clock_settime(clockid_t clock_id, const struct timespec *tp);
+
+#else
+
+#include <time.h>
+
+#endif
+
+#endif // LIBRARIES_NACL_IO_OSUNISTD_H_
+
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/osstat.h ('k') | native_client_sdk/src/libraries/nacl_io_test/event_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698