summaryrefslogtreecommitdiffstats
path: root/main/ruby/ruby-io.patch
blob: 7d89b3a281f726072caab4e539d7fd7d7171a68e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 */