]> git.ipfire.org Git - thirdparty/freeswitch.git/commit
FS-9840 mod-verto: fix implicit declaration warning
authorSebastian Kemper <sebastian_ml@gmx.net>
Tue, 13 Dec 2016 19:32:10 +0000 (20:32 +0100)
committerSebastian Kemper <sebastian_ml@gmx.net>
Fri, 23 Dec 2016 20:44:25 +0000 (21:44 +0100)
commit8063ad658b7c38e69a3e55b79c257161697aca8e
tree2b5f9e65220c2ce7d00e1661b98ef4888b5e2c34
parent3a25d0b20c56e464f62e61552aac669f9748d027
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>
src/mod/endpoints/mod_verto/ws.c