Browse Source
Newer versions of FreeBSD will have a glibc compatible byteswap.h. Currently, this file assumes that FreeBSD requires bswap{16,32,64} to always be defined. This isn't the case when we're using the byteswap.h file (which is enabled by HAVE_BYTESWAP_H define). Assume that if byteswap.h and endian.h are present, then the proper macros are defined. Otherwise, assume that sys/endian.h is present and paper over the small differences between the BSDs for this file. Signed-off-by: Warner Losh <imp@bsdimp.com>pull/1670/head

1 changed files with 7 additions and 0 deletions
Loading…
Reference in new issue