From da290abc25be2d71e3b2c5e82ea73b88b45d5885 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Sun, 24 Apr 2022 17:24:45 +0000 Subject: [PATCH] server: consistently use builtin byteswap after 53f88894d52a src/server.c:48:10: fatal error: 'byteswap.h' file not found #include ^~~~~~~~~~~~ --- src/server.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/server.c b/src/server.c index 4a8d35a..41c1bcb 100644 --- a/src/server.c +++ b/src/server.c @@ -45,7 +45,6 @@ #include #include #include -#include #ifdef ENABLE_TLS #include @@ -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