Index: src/modules/module-netjack2/peer.c
--- src/modules/module-netjack2/peer.c.orig
+++ src/modules/module-netjack2/peer.c
@@ -1,5 +1,12 @@
 
+#if __has_include(<byteswap.h>)
 #include <byteswap.h>
+#else
+#include <endian.h>
+#define bswap_16(x) swap16(x)
+#define bswap_32(x) swap32(x)
+#define bswap_64(x) swap64(x)
+#endif
 
 #ifdef HAVE_OPUS_CUSTOM
 #include <opus/opus.h>
