patch-io_c 651 B

1234567891011121314151617181920
  1. --- ruby-2.0.0-p247.orig/io.c 2013-06-12 16:23:39.000000000 +0200
  2. +++ ruby-2.0.0-p247/io.c 2013-10-26 23:02:53.000000000 +0200
  3. @@ -8483,7 +8483,7 @@ do_ioctl(int fd, ioctl_req_t cmd, long n
  4. #define DEFULT_IOCTL_NARG_LEN (256)
  5. -#ifdef __linux__
  6. +#if defined(__GLIBC__) && defined(__linux__)
  7. static long
  8. linux_iocparm_len(ioctl_req_t cmd)
  9. {
  10. @@ -8516,7 +8516,7 @@ ioctl_narg_len(ioctl_req_t cmd)
  11. #endif
  12. #ifdef IOCPARM_LEN
  13. len = IOCPARM_LEN(cmd); /* on BSDish systems we're safe */
  14. -#elif defined(__linux__)
  15. +#elif defined(__GLIBC__) && defined(__linux__)
  16. len = linux_iocparm_len(cmd);
  17. #else
  18. /* otherwise guess at what's safe */