NetBSD: bswap* re-definitions
The configure script mentions that it knows that bswap16 etc. exist on NetBSD:
checking for sys/endian.h... yes
checking for __swap16 variant of <sys/endian.h> byteswapping macros... no
checking for bswap16 variant of <sys/endian.h> byteswapping macros... yes
checking that generated files are newer than configure... done
but re-defines them anyway, leading to:
In file included from /usr/include/stdlib.h:37,
from amdgpu_drv.h:40,
from amdgpu_dri2.c:32:
../config.h:138:18: error: expected declaration specifiers or '...' before '__builtin_constant_p'
138 | #define bswap_64 bswap64
| ^~~~~~~
/scratch/x11/xf86-video-amdgpu/work/.buildlink/include/xorg/misc.h:302:1: note: in expansion of macro 'bswap_64'
302 | bswap_64(uint64_t x)
| ^~~~~~~~
../config.h:135:18: error: expected declaration specifiers or '...' before '__builtin_constant_p'
135 | #define bswap_32 bswap32
| ^~~~~~~
/scratch/x11/xf86-video-amdgpu/work/.buildlink/include/xorg/misc.h:321:1: note: in expansion of macro 'bswap_32'
321 | bswap_32(uint32_t x)
| ^~~~~~~~
../config.h:132:18: error: expected declaration specifiers or '...' before '__builtin_constant_p'
132 | #define bswap_16 bswap16
| ^~~~~~~
/scratch/x11/xf86-video-amdgpu/work/.buildlink/include/xorg/misc.h:365:1: note: in expansion of macro 'bswap_16'
365 | bswap_16(uint16_t x)
| ^~~~~~~~