freebsd: Add support for x86 and amd64 builds

Use the OS compiler, ie cc and c++.
This commit is contained in:
Chris Johns
2024-10-31 16:16:45 -05:00
committed by Andrew Johnson
parent 47880fbcf7
commit 83cbf8a4c7
3 changed files with 18 additions and 2 deletions
@@ -139,8 +139,12 @@ bswap32(epicsUInt32 value)
/* hton* is optimized or a builtin for most compilers
* so use it if possible
*/
#ifndef bswap16
#define bswap16(v) htons(v)
#endif
#ifndef bswap32
#define bswap32(v) htonl(v)
#endif
# define be_ioread16(A) bswap16(nat_ioread16(A))
# define be_ioread32(A) bswap32(nat_ioread32(A))