aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-11-16 19:10:11 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-02-06 11:00:18 -0800
commit5b3c6924a7d1a4e4623c70b1bcb8348a8c8ea295 (patch)
tree3d243b07190ab399a3829d881ff691df1f95ed0a
parent6a555f93d522781961707c296c37a7f41d38d37b (diff)
fix struct.timespec
-rw-r--r--src/library.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js
index 4300cef1..66d7c298 100644
--- a/src/library.js
+++ b/src/library.js
@@ -6042,7 +6042,9 @@ LibraryManager.library = {
// sys/time.h
// ==========================================================================
- __timespec_struct_layout: Runtime.generateStructInfo(['tv_sec', 'tv_nsec'], '%struct.timespec'),
+ __timespec_struct_layout: Runtime.generateStructInfo([
+ ['i32', 'tv_sec'],
+ ['i32', 'tv_nsec']]),
// TODO: Implement these for real.
clock_gettime__deps: ['__timespec_struct_layout'],
clock_gettime: function(clk_id, tp) {