Permalink
Browse files

Add OpenBSD and DragonFlyBSD support to brg_endian.h

  • Loading branch information...
1 parent 276c077 commit deddcf6e6f12960c4beed032d978c95905f62451 @Vagabond Vagabond committed Jun 30, 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 deddcf6

Please sign in to comment.