Change vsock to actually check for AF_HYPERV

This commit is contained in:
Keith Gable 2023-09-24 12:52:11 -07:00
parent 9305008ba8
commit 6decef6046

View File

@ -409,10 +409,8 @@ then
enable_vsock=yes enable_vsock=yes
if test "x$freebsd" = "xyes" if test "x$freebsd" = "xyes"
then then
# unconditionally define XRDP_ENABLE_VSOCK because there are no headers # Determine if we have AF_HYPERV defined (FreeBSD 13+)
# to check for. AF_HYPERV is present in FreeBSD 13 and may be present in AC_CHECK_DECL([AF_HYPERV], [AC_DEFINE([XRDP_ENABLE_VSOCK], 1, [Enable AF_HYPERV])], [], [#include <sys/socket.h>])
# earlier versions.
AC_DEFINE([XRDP_ENABLE_VSOCK], 1, [Enable AF_HYPERV])
else else
AC_CHECK_HEADERS([linux/socket.h linux/vm_sockets.h], AC_CHECK_HEADERS([linux/socket.h linux/vm_sockets.h],
[AC_DEFINE([XRDP_ENABLE_VSOCK], 1, [Enable AF_VSOCK])], [AC_DEFINE([XRDP_ENABLE_VSOCK], 1, [Enable AF_VSOCK])],