summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-06 02:15:00 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-06 02:15:00 +0000
commit24aa7a13ca0e7dacc18c705bbbe54fe4bcf23337 (patch)
tree292eb3ec35da41e89f16f5ba40841f4d81d030bf
parent043d22cb6ffbc841f29339fcde47d22220ee26ed (diff)
thread.c: our fake ppoll implementation is static
Rename it to "ruby_ppoll" so it looks more obvious in debuggers. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--thread.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/thread.c b/thread.c
index c58d3e0b9d..ae80a70682 100644
--- a/thread.c
+++ b/thread.c
@@ -3961,8 +3961,8 @@ rb_thread_fd_select(int max, rb_fdset_t * read, rb_fdset_t * write, rb_fdset_t *
#ifndef HAVE_PPOLL
/* TODO: don't ignore sigmask */
-int
-ppoll(struct pollfd *fds, nfds_t nfds,
+static int
+ruby_ppoll(struct pollfd *fds, nfds_t nfds,
const struct timespec *ts, const sigset_t *sigmask)
{
int timeout_ms;
@@ -3986,6 +3986,7 @@ ppoll(struct pollfd *fds, nfds_t nfds,
return poll(fds, nfds, timeout_ms);
}
+# define ppoll(fds,nfds,ts,sigmask) ruby_ppoll((fds),(nfds),(ts),(sigmask))
#endif
/*