summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <mail@waldemar-brodkorb.de>2013-10-26 23:38:49 +0200
committerWaldemar Brodkorb <mail@waldemar-brodkorb.de>2013-10-26 23:38:49 +0200
commit3a90f6cc2296e30109dd0063fbb791ea16e5664b (patch)
treedca33b0a0db4146404247cf34502b64a9fc4cf1c
parent8b158037825699c4337eb0cb2911a289a47b25d5 (diff)
fix with musl, from sabotage
-rw-r--r--package/ruby/patches/patch-io_c20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/ruby/patches/patch-io_c b/package/ruby/patches/patch-io_c
new file mode 100644
index 000000000..dea7f46fd
--- /dev/null
+++ b/package/ruby/patches/patch-io_c
@@ -0,0 +1,20 @@
+--- ruby-2.0.0-p247.orig/io.c 2013-06-12 16:23:39.000000000 +0200
++++ ruby-2.0.0-p247/io.c 2013-10-26 23:02:53.000000000 +0200
+@@ -8483,7 +8483,7 @@ do_ioctl(int fd, ioctl_req_t cmd, long n
+
+ #define DEFULT_IOCTL_NARG_LEN (256)
+
+-#ifdef __linux__
++#if defined(__GLIBC__) && defined(__linux__)
+ static long
+ linux_iocparm_len(ioctl_req_t cmd)
+ {
+@@ -8516,7 +8516,7 @@ ioctl_narg_len(ioctl_req_t cmd)
+ #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 */