--- ./librabbitmq/amqp_private.h.orig
+++ ./librabbitmq/amqp_private.h
@@ -262,7 +262,7 @@
   }
 
 /* Determine byte order */
-#if defined(__GLIBC__)
+#if defined(__linux__)
 # include <endian.h>
 # if (__BYTE_ORDER == __LITTLE_ENDIAN)
 #  define AMQP_LITTLE_ENDIAN
