Permalink
Browse files

add support for openbsd and add a catchall for other BSDs (netbsd/dra…

…gonfly).
  • Loading branch information...
1 parent a527b11 commit 9ebfd9f5c42ae56d4a29bf11804ff663d1c63035 @vincenthz committed Dec 30, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 cbits/bitfn.h
View
4 cbits/bitfn.h
@@ -163,8 +163,12 @@ static inline void array_copy64(uint64_t *d, uint64_t *s, uint32_t nb)
# define BYTE_ORDER LITTLE_ENDIAN
#elif defined(__FreeBSD__)
# include <sys/endian.h>
+#elif defined(__OpenBSD__)
+ # include <sys/types.h>
#elif defined(__APPLE__)
# include <machine/endian.h>
+#elif defined( BSD ) && ( BSD >= 199103 )
+ # include <machine/endian.h>
#else
# include <endian.h>
#endif

0 comments on commit 9ebfd9f

Please sign in to comment.