Open 0xDRRB opened 2 weeks ago
FreeBSD (14.1 RELEASE) compilation fails because the macros in portable_endian.h (be16toh, le16toh, etc) already exist in sys/endian.h.
portable_endian.h
be16toh
le16toh
sys/endian.h
This PR fixes the problem by differentiating FreeBSD from NetBSD/DragonFly and simply including sys/endian.h without defining anything else.
Can you change the base branch to develop please?
develop
Would a better fix be to treat FreeBSD the same as OpenBSD, as suggested by this comment?
Superseded by #133 ?
FreeBSD (14.1 RELEASE) compilation fails because the macros in
portable_endian.h
(be16toh
,le16toh
, etc) already exist insys/endian.h
.This PR fixes the problem by differentiating FreeBSD from NetBSD/DragonFly and simply including
sys/endian.h
without defining anything else.