summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Savchenko <andrey@aejis.eu>2014-09-05 04:31:25 +0300
committerAndrey Savchenko <andrey@aejis.eu>2014-09-05 04:31:33 +0300
commit6a5e27bc728dbaa16591263e156567e12fffea88 (patch)
tree5524f68c3669c9f47ef954fd9bc939a1f670209a
parent53fedc22339d1447b4690c352acce0d3010bfe21 (diff)
downloadffi-6a5e27bc728dbaa16591263e156567e12fffea88.tar.gz
Fix for non-glibc linux environments
-rw-r--r--ext/ffi_c/Platform.c4
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);