aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/library.js6
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') }}}