Whamcloud - gitweb
LU-6484 build: autoconf checks cleanup
[fs/lustre-release.git] / libcfs / include / libcfs / byteorder.h
index 6643cec..03c18f8 100644 (file)
@@ -30,7 +30,9 @@
 # include <asm/byteorder.h>
 #else /* __KERNEL__ */
 
-# include <endian.h>
+# ifdef HAVE_ENDIAN_H
+#  include <endian.h>
+# endif
 # include <byteswap.h>
 
 # define __swab16(x) bswap_16(x)