Skip to content

Commit 6ef650b

Browse files
committed
Fix macOS build issues.
1 parent d5a30ff commit 6ef650b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/io/event/selector/kqueue.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,7 @@ VALUE IO_Event_Selector_KQueue_select(VALUE self, VALUE duration) {
975975
// Non-comprehensive testing shows this gives a 1.5x speedup.
976976

977977
// First do the syscall with no timeout to get any immediately available events:
978-
if (DEBUG) fprintf(stderr, "\r\nselect_internal_with_gvl timeout=" IO_EVENT_PRINTF_TIMESPEC "\r\n", IO_EVENT_PRINTF_TIMESPEC_ARGUMENTS(arguments.storage));
978+
if (DEBUG) fprintf(stderr, "\r\nselect_internal_with_gvl timeout=" IO_EVENT_TIME_PRINTF_TIMESPEC "\r\n", IO_EVENT_TIME_PRINTF_TIMESPEC_ARGUMENTS(arguments.storage));
979979
select_internal_with_gvl(&arguments);
980980
if (DEBUG) fprintf(stderr, "\r\nselect_internal_with_gvl done\r\n");
981981

@@ -993,7 +993,7 @@ VALUE IO_Event_Selector_KQueue_select(VALUE self, VALUE duration) {
993993
struct timespec start_time;
994994
IO_Event_Time_current(&start_time);
995995

996-
if (DEBUG) fprintf(stderr, "IO_Event_Selector_KQueue_select timeout=" IO_EVENT_PRINTF_TIMESPEC "\n", IO_EVENT_PRINTF_TIMESPEC_ARGUMENTS(arguments.storage));
996+
if (DEBUG) fprintf(stderr, "IO_Event_Selector_KQueue_select timeout=" IO_EVENT_TIME_PRINTF_TIMESPEC "\n", IO_EVENT_TIME_PRINTF_TIMESPEC_ARGUMENTS(arguments.storage));
997997
select_internal_without_gvl(&arguments);
998998

999999
struct timespec end_time;

0 commit comments

Comments
 (0)