Skip to content

Commit

Permalink
Merge pull request #913 from xtkoba/uclibc
Browse files Browse the repository at this point in the history
Fix build for uClibc
  • Loading branch information
larskanis committed Aug 15, 2021
2 parents 7c70b82 + 05eac54 commit cd0db90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/ffi_c/Platform.c
Expand Up @@ -38,7 +38,7 @@
#include "rbffi_endian.h"
#include "Platform.h"

#if defined(__GNU__) || defined(__GLIBC__)
#if defined(__GNU__) || (defined(__GLIBC__) && !defined(__UCLIBC__))
# include <gnu/lib-names.h>
#endif

Expand Down Expand Up @@ -71,7 +71,7 @@ rbffi_Platform_Init(VALUE moduleFFI)
rb_define_const(PlatformModule, "BYTE_ORDER", INT2FIX(BYTE_ORDER));
rb_define_const(PlatformModule, "LITTLE_ENDIAN", INT2FIX(LITTLE_ENDIAN));
rb_define_const(PlatformModule, "BIG_ENDIAN", INT2FIX(BIG_ENDIAN));
#if defined(__GNU__) || defined(__GLIBC__)
#if defined(__GNU__) || (defined(__GLIBC__) && !defined(__UCLIBC__))
rb_define_const(PlatformModule, "GNU_LIBC", rb_str_new2(LIBC_SO));
#endif
export_primitive_types(PlatformModule);
Expand Down

0 comments on commit cd0db90

Please sign in to comment.