File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 3838#include "rbffi_endian.h"
3939#include "Platform.h"
4040
41- #if defined(__GNU__ ) || defined(__GLIBC__ )
41+ #if defined(__GNU__ ) || ( defined(__GLIBC__ ) && !defined( __UCLIBC__ ) )
4242# include <gnu/lib-names.h>
4343#endif
4444
@@ -71,7 +71,7 @@ rbffi_Platform_Init(VALUE moduleFFI)
7171 rb_define_const (PlatformModule , "BYTE_ORDER" , INT2FIX (BYTE_ORDER ));
7272 rb_define_const (PlatformModule , "LITTLE_ENDIAN" , INT2FIX (LITTLE_ENDIAN ));
7373 rb_define_const (PlatformModule , "BIG_ENDIAN" , INT2FIX (BIG_ENDIAN ));
74- #if defined(__GNU__ ) || defined(__GLIBC__ )
74+ #if defined(__GNU__ ) || ( defined(__GLIBC__ ) && !defined( __UCLIBC__ ) )
7575 rb_define_const (PlatformModule , "GNU_LIBC" , rb_str_new2 (LIBC_SO ));
7676#endif
7777 export_primitive_types (PlatformModule );
You can’t perform that action at this time.
0 commit comments