summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorRaphael Kubo da Costa <rakuco@FreeBSD.org>2012-09-11 22:50:15 +0300
committerChristian Beier <dontmind@freeshell.org>2012-09-14 18:47:37 +0200
commit95dd76327b79ff892b011876a959a8b8e40afe62 (patch)
tree71843360e75cb38aa8855bfecfb867218353f950 /configure.ac
parent2d18f3cdcfa0bca29dd83720d311682269b7d813 (diff)
downloadlibtdevnc-95dd76327b79ff892b011876a959a8b8e40afe62.tar.gz
libtdevnc-95dd76327b79ff892b011876a959a8b8e40afe62.zip
Use htobeNN(3) to convert numbers in websocket.c.
byteswap.h exists only on glibc, so building libvncserver with websockets support was not possible in other systems. Replace the inclusion of byteswap.h and the WS_* definitions with calls to htobeNN, which should perform the same conversions, be more portable and avoid the need to check for the platform's endianness.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 773d29a..3c8e3b7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -885,7 +885,7 @@ fi
# Checks for header files.
AC_HEADER_STDC
-AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h sys/timeb.h syslog.h unistd.h ws2tcpip.h])
+AC_CHECK_HEADERS([arpa/inet.h endian.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/endian.h sys/socket.h sys/time.h sys/timeb.h syslog.h unistd.h ws2tcpip.h])
# x11vnc only:
if test "$build_x11vnc" = "yes"; then