09ba0a6ca8
NetBSD conventional bswap16, bswap32, and bswap64 functions or macros. In a non-tools build, include <sys/types.h> and <machine/bswap.h> to get definitions of these functions. In a tools build, rely on the functions or macros being provided by nbtool_config.h, but don't incluce <machine/bswap.h> (which might not exist in a cross build). This should address a problem building on OpenBSD, which has swap16, swap32, and swap64 macros that conflicted with the local definitions. The problem was reported by Alexander Bluhm, but this patch is quite different from the one he suggested. |
||
---|---|---|
.. | ||
Makefile | ||
pwd_mkdb.8 | ||
pwd_mkdb.c |