diff options
author | tduehr <td@matasano.com> | 2014-09-15 15:31:50 -0500 |
---|---|---|
committer | tduehr <td@matasano.com> | 2014-09-15 15:31:50 -0500 |
commit | c31cc3c98fe95fc3fa8c8f3a1df69b090022cf23 (patch) | |
tree | 5524f68c3669c9f47ef954fd9bc939a1f670209a | |
parent | 53fedc22339d1447b4690c352acce0d3010bfe21 (diff) | |
parent | 6a5e27bc728dbaa16591263e156567e12fffea88 (diff) | |
download | ffi-c31cc3c98fe95fc3fa8c8f3a1df69b090022cf23.tar.gz |
Merge pull request #367 from Ptico/master
Fix for non-glibc linux environments
-rw-r--r-- | ext/ffi_c/Platform.c | 4 |
1 files 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 <gnu/lib-names.h> #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); |