mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 12:40:17 +00:00
FS-9840 mod-verto: fix implicit declaration warning
This fixes the following compile-time warning: making all mod_verto make[7]: Entering directory '/home/sk/tmp/lede/build_dir/target-mips_24kc_musl-1.1.15/freeswitch-1.8.0/src/mod/endpoints/mod_verto' CC mod_verto_la-mod_verto.lo CC mod_verto_la-ws.lo ws.c: In function 'hton64': ws.c:730:14: error: implicit declaration of function '__bswap_64' [-Werror=implicit-function-declaration] else return __bswap_64(val); ^ cc1: all warnings being treated as errors Fix by including byteswap.h, which is available on Linux and also everywhere glibc is used (wpa_supplicant includes this header the same way). Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This commit is contained in:
parent
3a25d0b20c
commit
8063ad658b
@ -6,6 +6,10 @@
|
||||
#include <fcntl.h>
|
||||
#endif
|
||||
|
||||
#if defined(__linux__) || defined(__GLIBC__)
|
||||
#include <byteswap.h>
|
||||
#endif
|
||||
|
||||
#ifndef _MSC_VER
|
||||
#define ms_sleep(x) usleep( x * 1000);
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user