aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-06-16 11:51:21 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-06-16 13:17:19 +0900
commitc2d9967f78d2e6f93f8d9876c2b3ab25aa6b86e7 (patch)
tree938aebd645ee59b00b64befe1da72669343dc3af /io.c
parentd4db18d6adf93ba48bb15657f4d96d15cf0b7f93 (diff)
downloadruby-c2d9967f78d2e6f93f8d9876c2b3ab25aa6b86e7.tar.gz
Configure ioctl request argument type [Bug #17759]
Diffstat (limited to 'io.c')
-rw-r--r--io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/io.c b/io.c
index 1051149d9d..eceec8bf44 100644
--- a/io.c
+++ b/io.c
@@ -9810,8 +9810,8 @@ rb_f_select(int argc, VALUE *argv, VALUE obj)
return rb_ensure(select_call, (VALUE)&args, select_end, (VALUE)&args);
}
-#if (defined(__linux__) && !defined(__ANDROID__)) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
- typedef unsigned long ioctl_req_t;
+#ifdef IOCTL_REQ_TYPE
+ typedef IOCTL_REQ_TYPE ioctl_req_t;
# define NUM2IOCTLREQ(num) NUM2ULONG(num)
#else
typedef int ioctl_req_t;