--- src/portable_endian.h
+++ src/portable_endian.h
@@ -14,6 +14,12 @@
 
 #	include <endian.h>
 
+#elif defined(__linux__) && defined(__UCLIBC__) && \
+    ((__UCLIBC_MAJOR__ > 0) || \
+     (__UCLIBC_MINOR__ == 9 && __UCLIBC_SUBLEVEL__ >= 32))
+
+#	include <endian.h>
+
 #elif defined(HAVE_ENDIAN_H)
 #	include <endian.h>
 
