From 2cd9aae4b75b89e9dd0a820ff48d2edea89203c7 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 12 Oct 2023 17:36:24 +0900 Subject: Fix unused-function warning for 'ruby_ppoll' [ci skip] --- thread_pthread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thread_pthread.c') 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, -- cgit v1.2.3