Package: ruby-ffi
Version: 1.0.9debian-2
Severity: important
Tags: patch

Hi,

currently ruby-ffi fails to build on kFreeBSD and Hurd.
The problem is that the C ffi extension does not have a way to detect
the endianness on these OSes.
Given they both use GNU libc, we can use the same way (<endian.h>)
used for the Linux case already; this is what the attached patch does.

Thanks,
-- 
Pino
--- a/ext/ffi_c/endian.h
+++ b/ext/ffi_c/endian.h
@@ -4,7 +4,7 @@
 #include <sys/param.h>
 #include <sys/types.h>
 
-#if defined(__linux__) || defined(__CYGWIN__)
+#if defined(__linux__) || defined(__CYGWIN__) || defined(__GLIBC__)
 #  include_next <endian.h>
 #endif
 
_______________________________________________
Pkg-ruby-extras-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers

Reply via email to