Add a little more BSD detection (#2685)

Tested for NetBSD, the same signature has DragonFly(http://fxr.watson.org/fxr/source/sys/endian.h?v=DFBSD#L42)
This commit is contained in:
Daniel Ölschlegel
2016-12-12 01:16:47 +01:00
committed by auriamg
parent 244c812cf3
commit 62e1a2ddcc

View File

@@ -22,7 +22,7 @@
#include <libkern/OSByteOrder.h>
#define bswap_16(X) OSReadSwapInt16(&X,0)
#define bswap_32(X) OSReadSwapInt32(&X,0)
#elif defined(__FreeBSD__)
#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
#include <sys/endian.h>
#define bswap_16(X) bswap16(X)
#define bswap_32(X) bswap32(X)