Merge pull request #4755 from jszakmeister/fix-endian-h-on-bsd

Fix be64toh() detection on BSDs.
This commit is contained in:
Justin M. Keyes
2016-05-14 17:06:57 -04:00
3 changed files with 11 additions and 2 deletions

View File

@@ -46,7 +46,7 @@
#ifdef HAVE_BE64TOH
# define _BSD_SOURCE 1
# define _DEFAULT_SOURCE 1
# include <endian.h>
# include ENDIAN_INCLUDE_FILE
#endif
// Note: when using bufset hash pointers are intentionally casted to uintptr_t