Skip to content

Commit

Permalink
Change vsock to actually check for AF_HYPERV
Browse files Browse the repository at this point in the history
  • Loading branch information
ziggythehamster committed Sep 24, 2023
1 parent 9305008 commit 6decef6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -409,10 +409,8 @@ then
enable_vsock=yes
if test "x$freebsd" = "xyes"
then
# unconditionally define XRDP_ENABLE_VSOCK because there are no headers
# to check for. AF_HYPERV is present in FreeBSD 13 and may be present in
# earlier versions.
AC_DEFINE([XRDP_ENABLE_VSOCK], 1, [Enable AF_HYPERV])
# Determine if we have AF_HYPERV defined (FreeBSD 13+)
AC_CHECK_DECL([AF_HYPERV], [AC_DEFINE([XRDP_ENABLE_VSOCK], 1, [Enable AF_HYPERV])], [], [#include <sys/socket.h>])
else
AC_CHECK_HEADERS([linux/socket.h linux/vm_sockets.h],
[AC_DEFINE([XRDP_ENABLE_VSOCK], 1, [Enable AF_VSOCK])],
Expand Down

0 comments on commit 6decef6

Please sign in to comment.