Fix for double bswap definitions. On NetBSD, the sys/endian.h file has definitions for bswap16, bswap32 and bswap64. If these are included, then the redeclaration of the routines in src/generic/endian.h makes compilation fail. The fix detects in configure if the functions are declared, and if so, does not attempt to provide a function definition for them.
Fix for double bswap definitions. On NetBSD, the sys/endian.h file has definitions for bswap16, bswap32 and bswap64. If these are included, then the redeclaration of the routines in src/generic/endian.h makes compilation fail. The fix detects in configure if the functions are declared, and if so, does not attempt to provide a function definition for them.