projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge git://www.denx.de/git/u-boot-imx
[platform/kernel/u-boot.git]
/
include
/
compiler.h
diff --git
a/include/compiler.h
b/include/compiler.h
index
47c296e
..
a43fb6a
100644
(file)
--- a/
include/compiler.h
+++ b/
include/compiler.h
@@
-15,7
+15,7
@@
defined(__sun__) || \
defined(__APPLE__)
# include <inttypes.h>
defined(__sun__) || \
defined(__APPLE__)
# include <inttypes.h>
-#elif defined(__linux__) || defined(__WIN32__) || defined(__MINGW32__)
+#elif defined(__linux__) || defined(__WIN32__) || defined(__MINGW32__)
|| defined(__OpenBSD__)
# include <stdint.h>
#endif
# include <stdint.h>
#endif
@@
-50,6
+50,11
@@
typedef unsigned long ulong;
#endif
#ifdef __FreeBSD__
# include <sys/endian.h> /* htole32 and friends */
#endif
#ifdef __FreeBSD__
# include <sys/endian.h> /* htole32 and friends */
+#elif defined(__OpenBSD__)
+# include <endian.h>
+# define __BYTE_ORDER BYTE_ORDER
+# define __LITTLE_ENDIAN LITTLE_ENDIAN
+# define __BIG_ENDIAN BIG_ENDIAN
#endif
#include <time.h>
#endif
#include <time.h>