summaryrefslogtreecommitdiff
path: root/thread_pthread.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2023-10-12 17:36:24 +0900
committerNobuyoshi Nakada <[email protected]>2023-10-12 17:36:24 +0900
commit2cd9aae4b75b89e9dd0a820ff48d2edea89203c7 (patch)
tree7a9d0681b639413c79c5b7d5ff0bdabd8e6ac20c /thread_pthread.c
parent769f53eb7e9db306988bb99802b15942c1c755c3 (diff)
Fix unused-function warning for 'ruby_ppoll' [ci skip]
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index 787b6f437c..0649709265 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -3171,7 +3171,7 @@ rb_nativethread_self(void)
return pthread_self();
}
-#ifndef HAVE_PPOLL
+#if defined(USE_POLL) && !defined(HAVE_PPOLL)
/* TODO: don't ignore sigmask */
static int
ruby_ppoll(struct pollfd *fds, nfds_t nfds,