mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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.
This commit is contained in:
parent
45bed2850e
commit
8df25214de
1 changed files with 1 additions and 1 deletions
2
io.c
2
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
|
||||
|
|
Loading…
Reference in a new issue