win32: Add support for Unix sockets in autoconf build.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/360>
This commit is contained in:
Edward Lee 2020-10-01 10:14:08 -04:00 committed by Arun Raghavan
parent 4b3cc2df8d
commit 3c51930b61
2 changed files with 6 additions and 0 deletions

View file

@ -434,6 +434,9 @@ AC_CHECK_HEADERS([netinet/ip.h], [], [],
AC_CHECK_HEADERS([sys/resource.h], [HAVE_SYS_RESOURCE_H=1], [HAVE_SYS_RESOURCE_H=0])
AC_SUBST(HAVE_SYS_RESOURCE_H)
AC_CHECK_HEADERS([sys/un.h], [HAVE_AF_UNIX=1], [HAVE_AF_UNIX=0])
# In principle we would test for <afunix.h>, but that doesn't ship (yet) with the
# MinGW headers.
AC_CHECK_HEADERS([winsock2.h], [HAVE_AF_UNIX=1], [])
AM_CONDITIONAL(HAVE_AF_UNIX, test "x$HAVE_AF_UNIX" = "x1")
AC_SUBST(HAVE_AF_UNIX)

View file

@ -206,8 +206,11 @@ bin_PROGRAMS += pasuspender
endif
if HAVE_AF_UNIX
if !OS_IS_WIN32
# pacmd relies on Unix signals, which are not present on Windows.
bin_PROGRAMS += pacmd
endif
endif
if HAVE_X11
bin_PROGRAMS += pax11publish