server: consistently use builtin byteswap after 53f88894d5

src/server.c:48:10: fatal error: 'byteswap.h' file not found
 #include <byteswap.h>
          ^~~~~~~~~~~~
pull/64/head
Jan Beich 2022-04-24 17:24:45 +00:00 committed by Andri Yngvason
parent 53f88894d5
commit da290abc25
1 changed files with 1 additions and 2 deletions

View File

@ -45,7 +45,6 @@
#include <sys/socket.h>
#include <sys/un.h>
#include <netdb.h>
#include <byteswap.h>
#ifdef ENABLE_TLS
#include <gnutls/gnutls.h>
@ -91,7 +90,7 @@ extern const unsigned short code_map_qnum_to_linux[];
static uint64_t nvnc__htonll(uint64_t x)
{
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
return bswap_64(x);
return __builtin_bswap64(x);
#else
return x;
#endif