Commit 4de16499 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

endian: fix function redefinition on OpenBSD

parent cd808b68
......@@ -40,13 +40,7 @@
#elif defined(__FreeBSD__) || defined(__NetBSD__)
# include <sys/endian.h>
#elif defined(__OpenBSD__)
# include <sys/types.h>
# define be16toh(x) betoh16(x)
# define be32toh(x) betoh32(x)
# define be64toh(x) betoh64(x)
# define le16toh(x) letoh16(x)
# define le32toh(x) letoh32(x)
# define le64toh(x) letoh64(x)
# include <endian.h>
#elif defined(__APPLE__)
# include <libkern/OSByteOrder.h>
# define be16toh(x) OSSwapBigToHostInt16(x)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment