Skip to content

Commit 2cd9aae

Browse files
committed
Fix unused-function warning for 'ruby_ppoll' [ci skip]
1 parent 769f53e commit 2cd9aae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

thread_pthread.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3171,7 +3171,7 @@ rb_nativethread_self(void)
31713171
return pthread_self();
31723172
}
31733173

3174-
#ifndef HAVE_PPOLL
3174+
#if defined(USE_POLL) && !defined(HAVE_PPOLL)
31753175
/* TODO: don't ignore sigmask */
31763176
static int
31773177
ruby_ppoll(struct pollfd *fds, nfds_t nfds,

0 commit comments

Comments
 (0)