Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-6484 build: autoconf checks cleanup
[fs/lustre-release.git]
/
libcfs
/
include
/
libcfs
/
byteorder.h
diff --git
a/libcfs/include/libcfs/byteorder.h
b/libcfs/include/libcfs/byteorder.h
index
6643cec
..
03c18f8
100644
(file)
--- a/
libcfs/include/libcfs/byteorder.h
+++ b/
libcfs/include/libcfs/byteorder.h
@@
-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)