Permalink
Browse files

Merge pull request #5 from basho/adt-bsd-support

Support for NetBSD, DragonFlyBSD and OpenBSD
  • Loading branch information...
2 parents 276c077 + deddcf6 commit cd531f8fe23ed9b4584d39027f5fd5d6ea942972 @dizzyd dizzyd committed Nov 9, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 c_src/brg_endian.h
View
@@ -39,7 +39,9 @@
#define IS_LITTLE_ENDIAN 1234 /* byte 0 is least significant (i386) */
/* Include files where endian defines and byteswap functions may reside */
-#if defined( __FreeBSD__ ) || defined( __OpenBSD__ ) || defined( __NetBSD__ )
+#if defined( __FreeBSD__ ) || defined( __OpenBSD__ ) || defined( __NetBSD__ ) || \
+ defined( __DragonFly__ )
+# include <sys/types.h>
# include <sys/endian.h>
#elif defined( BSD ) && ( BSD >= 199103 ) || defined( __APPLE__ ) || \
defined( __CYGWIN32__ ) || defined( __DJGPP__ ) || defined( __osf__ )

0 comments on commit cd531f8

Please sign in to comment.