aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-08-20 00:17:26 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-08-20 00:17:26 +0900
commit8df25214de1a240ec6859415692b29955d2d423a (patch)
tree9f8d401ff242e08ebf093efbf821b422d30741bb /io.c
parent45bed2850e5bf31c3528cf3559e76c3823bb4340 (diff)
downloadruby-8df25214de1a240ec6859415692b29955d2d423a.tar.gz
io.c: make ioctl_req_t int in Android
The second argument of ioctl seems to be int in Android. Android is not a supported platform, but this one-line change allows ruby to build by Android NDK r20.
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index 19ce45cff7..e918f1c79b 100644
--- a/io.c
+++ b/io.c
@@ -9560,7 +9560,7 @@ rb_f_select(int argc, VALUE *argv, VALUE obj)
return rb_ensure(select_call, (VALUE)&args, select_end, (VALUE)&args);
}
-#if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
+#if (defined(__linux__) && !defined(__ANDROID__)) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
typedef unsigned long ioctl_req_t;
# define NUM2IOCTLREQ(num) NUM2ULONG(num)
#else