aboutsummaryrefslogtreecommitdiffstats
path: root/main/ruby/ruby-io.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-09-29 16:01:40 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-09-29 16:01:40 +0000
commitc60fb8a774181ae8e6269c781408f3becb480bf7 (patch)
treea3048ecf3ce7753bffa04513c136c99cfaf684c7 /main/ruby/ruby-io.patch
parentc63cde4dec703b4314807379a8fadf8eaa45c35c (diff)
downloadaports-c60fb8a774181ae8e6269c781408f3becb480bf7.tar.bz2
aports-c60fb8a774181ae8e6269c781408f3becb480bf7.tar.xz
main/ruby: fix musl build
patch from sabotage
Diffstat (limited to 'main/ruby/ruby-io.patch')
-rw-r--r--main/ruby/ruby-io.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/main/ruby/ruby-io.patch b/main/ruby/ruby-io.patch
new file mode 100644
index 0000000000..7d89b3a281
--- /dev/null
+++ b/main/ruby/ruby-io.patch
@@ -0,0 +1,21 @@
+diff -r 717f4d34f468 io.c
+--- a/io.c Tue Mar 05 06:12:37 2013 +0000
++++ b/io.c Tue Mar 05 06:17:04 2013 +0000
+@@ -8020,7 +8020,7 @@
+
+ #define DEFULT_IOCTL_NARG_LEN (256)
+
+-#ifdef __linux__
++#if defined(__GLIBC__) && defined(__linux__)
+ static long
+ linux_iocparm_len(ioctl_req_t cmd)
+ {
+@@ -8053,7 +8053,7 @@
+ #endif
+ #ifdef IOCPARM_LEN
+ len = IOCPARM_LEN(cmd); /* on BSDish systems we're safe */
+-#elif defined(__linux__)
++#elif defined(__GLIBC__) && defined(__linux__)
+ len = linux_iocparm_len(cmd);
+ #else
+ /* otherwise guess at what's safe */