NLnetLabs / simdzone

Fast and standards compliant DNS zone parser
BSD 3-Clause "New" or "Revised" License
64 stars 11 forks source link

Fix double bswap #231

Closed wcawijngaards closed 3 weeks ago

wcawijngaards commented 3 weeks ago

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.