diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-11-16 18:50:53 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-02-06 10:58:06 -0800 |
commit | 860ee4943367055d76fb0c02649f64e407ab0293 (patch) | |
tree | c6da880cb74ae89b65a99f0ba813b47321cbe7b5 | |
parent | 7ceb8568b438515c4990e77dbe4a3b77b7a2ccb1 (diff) |
fix struct.pollfd
-rw-r--r-- | src/library.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js index b7b43a92..bf5f1250 100644 --- a/src/library.js +++ b/src/library.js @@ -1343,7 +1343,10 @@ LibraryManager.library = { // poll.h // ========================================================================== - __pollfd_struct_layout: Runtime.generateStructInfo(['fd', 'events', 'revents'], '%struct.pollfd'), + __pollfd_struct_layout: Runtime.generateStructInfo([ + ['i32', 'fd'], + ['i16', 'events'], + ['i16', 'revents']]), poll__deps: ['$FS', '__pollfd_struct_layout'], poll: function(fds, nfds, timeout) { // int poll(struct pollfd fds[], nfds_t nfds, int timeout); |