From 6a5e27bc728dbaa16591263e156567e12fffea88 Mon Sep 17 00:00:00 2001 From: Andrey Savchenko Date: Fri, 5 Sep 2014 04:31:25 +0300 Subject: Fix for non-glibc linux environments --- ext/ffi_c/Platform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/ffi_c/Platform.c b/ext/ffi_c/Platform.c index c45f1eb..1305ad2 100644 --- a/ext/ffi_c/Platform.c +++ b/ext/ffi_c/Platform.c @@ -43,7 +43,7 @@ #include "rbffi_endian.h" #include "Platform.h" -#if defined(__linux__) || defined(__GNU__) || defined(__GLIBC__) +#if defined(__GNU__) || defined(__GLIBC__) # include #endif @@ -113,7 +113,7 @@ rbffi_Platform_Init(VALUE moduleFFI) rb_define_const(PlatformModule, "LITTLE_ENDIAN", INT2FIX(LITTLE_ENDIAN)); rb_define_const(PlatformModule, "BIG_ENDIAN", INT2FIX(BIG_ENDIAN)); rb_define_const(PlatformModule, "CPU", rb_str_new2(CPU)); -#if defined(__linux__) || defined(__GNU__) || defined(__GLIBC__) +#if defined(__GNU__) || defined(__GLIBC__) rb_define_const(PlatformModule, "GNU_LIBC", rb_str_new2(LIBC_SO)); #endif export_primitive_types(PlatformModule); -- cgit v1.2.1