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
This commit is contained in:
normal 2018-07-06 02:15:00 +00:00
parent 043d22cb6f
commit 24aa7a13ca

View File

@ -3961,8 +3961,8 @@ rb_thread_fd_select(int max, rb_fdset_t * read, rb_fdset_t * write, rb_fdset_t *
#ifndef HAVE_PPOLL #ifndef HAVE_PPOLL
/* TODO: don't ignore sigmask */ /* TODO: don't ignore sigmask */
int static int
ppoll(struct pollfd *fds, nfds_t nfds, ruby_ppoll(struct pollfd *fds, nfds_t nfds,
const struct timespec *ts, const sigset_t *sigmask) const struct timespec *ts, const sigset_t *sigmask)
{ {
int timeout_ms; int timeout_ms;
@ -3986,6 +3986,7 @@ ppoll(struct pollfd *fds, nfds_t nfds,
return poll(fds, nfds, timeout_ms); return poll(fds, nfds, timeout_ms);
} }
# define ppoll(fds,nfds,ts,sigmask) ruby_ppoll((fds),(nfds),(ts),(sigmask))
#endif #endif
/* /*