Project

General

Profile

Bug #17759 ยป ruby-ioctl_req_t.patch

xtkoba (Tee KOBAYASHI), 03/29/2021 08:56 AM

View differences:

io.c
9775 9775
    return rb_ensure(select_call, (VALUE)&args, select_end, (VALUE)&args);
9776 9776
}
9777 9777

  
9778
#if (defined(__linux__) && !defined(__ANDROID__)) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
9778
#if defined(__GLIBC__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
9779 9779
 typedef unsigned long ioctl_req_t;
9780 9780
# define NUM2IOCTLREQ(num) NUM2ULONG(num)
9781 9781
#else