diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-10-02 21:48:08 +0200 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-10-02 21:48:08 +0200 |
commit | c2a8a5b364e6b888c6563af371603eb5ce86c1b5 (patch) | |
tree | 2f1a53c921d5b20f7f79c3962b550f33a6fe6565 /src | |
parent | 9b00cf0da46154b27e439ced5d4a6abd388979ec (diff) |
fix test_poll
Diffstat (limited to 'src')
-rw-r--r-- | src/library.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library.js b/src/library.js index 7bc3158c..3387a326 100644 --- a/src/library.js +++ b/src/library.js @@ -1077,10 +1077,10 @@ LibraryManager.library = { var revents = 0; if (fd in FS.streams) { var stream = FS.streams[fd]; - if (events & 0x1) revents |= 0x1; // POLLIN. - if (events & 0x4) revents |= 0x4; // POLLOUT. + if (events & {{{ cDefine('POLLIN') }}}) revents |= {{{ cDefine('POLLIN') }}}; + if (events & {{{ cDefine('POLLOUT') }}}) revents |= {{{ cDefine('POLLOUT') }}}; } else { - if (events & 0x20) revents |= 0x20; // POLLNVAL. + if (events & {{{ cDefine('POLLNVAL') }}}) revents |= {{{ cDefine('POLLNVAL') }}}; } if (revents) nonzero++; {{{ makeSetValue('pollfd', 'offsets.revents', 'revents', 'i16') }}} |