mirror of
https://repo.or.cz/socat.git
synced 2025-07-15 15:43:24 +00:00
Added VSOCK stream addresses
This commit is contained in:
parent
1c7ddfef73
commit
1502f0cdcb
18 changed files with 442 additions and 4 deletions
23
configure.ac
23
configure.ac
|
@ -349,6 +349,29 @@ else
|
|||
fi
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING(whether to include vsock support)
|
||||
AC_ARG_ENABLE(vsock, [ --disable-vsock disable vsock support],
|
||||
[case "$enableval" in
|
||||
no) AC_MSG_RESULT(no); WITH_VSOCK= ;;
|
||||
*) AC_MSG_RESULT(yes); WITH_VSOCK=1 ;;
|
||||
esac],
|
||||
[AC_MSG_RESULT(yes); WITH_VSOCK=1 ])
|
||||
if test "$WITH_VSOCK"; then
|
||||
AC_CHECK_HEADER(linux/vm_sockets.h,
|
||||
AC_DEFINE(HAVE_LINUX_VM_SOCKETS_H),
|
||||
[WITH_VSOCK=;
|
||||
AC_MSG_WARN([include file linux/vm_sockets.h not found, disabling vsock])],
|
||||
[AC_INCLUDES_DEFAULT
|
||||
#if HAVE_SYS_SOCKET_H
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
]
|
||||
)
|
||||
fi
|
||||
if test "$WITH_VSOCK"; then
|
||||
AC_DEFINE(WITH_VSOCK)
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING(whether to include listen support)
|
||||
AC_ARG_ENABLE(listen, [ --disable-listen disable listen support],
|
||||
[case "$enableval" in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue