From 379da4ce093bdc957b53b563aa1ae0c7c37c19ac Mon Sep 17 00:00:00 2001 From: ng0 Date: Mon, 29 Jul 2019 18:38:04 +0000 Subject: [PATCH] configure.ac: define a check for HAVE_SENDMSG --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 61b0c6f1..5b7a8114 100644 --- a/configure.ac +++ b/configure.ac @@ -642,6 +642,10 @@ AM_CONDITIONAL(USE_MS_LIB_TOOL, [test "x$ac_cv_use_ms_lib_tool" = "xyes"]) MHD_CHECK_SOCKET_SHUTDOWN_TRIGGER([AC_DEFINE([HAVE_LISTEN_SHUTDOWN],[1],[can use shutdown on listen sockets])]) AM_CONDITIONAL([HAVE_LISTEN_SHUTDOWN], [test "x$mhd_cv_host_shtdwn_trgr_select" = "xyes"]) +# SENDMSG. Should we check for SCM_RIGHTS instead? +# https://lists.x.org/archives/xorg-devel/2013-November/038687.html +AC_SEARCH_LIBS(sendmsg, socket, AC_DEFINE([HAVE_SENDMSG],1,[Define if your platform supports sendmsg])) + # set GCC options # use '-fno-strict-aliasing', but only if the compiler # and linker can take it