From c60fb8a774181ae8e6269c781408f3becb480bf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Sun, 29 Sep 2013 16:01:40 +0000 Subject: main/ruby: fix musl build patch from sabotage --- main/ruby/ruby-io.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 main/ruby/ruby-io.patch (limited to 'main/ruby/ruby-io.patch') 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 */ -- cgit v1.2.3