mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-01-18 06:20:32 +01:00
Modernize checks for socklen_t
Part of a patch by Javier Jardón. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=32245 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
This commit is contained in:
parent
1704a7d483
commit
07a54bb2f1
1 changed files with 5 additions and 3 deletions
|
|
@ -601,14 +601,16 @@ fi
|
|||
|
||||
dnl check for socklen_t
|
||||
AC_MSG_CHECKING(whether socklen_t is defined)
|
||||
AC_TRY_COMPILE([
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netdb.h>
|
||||
],[
|
||||
]], [[
|
||||
socklen_t foo;
|
||||
foo = 1;
|
||||
],dbus_have_socklen_t=yes,dbus_have_socklen_t=no)
|
||||
]])],
|
||||
[dbus_have_socklen_t=yes],
|
||||
[dbus_have_socklen_t=no])
|
||||
AC_MSG_RESULT($dbus_have_socklen_t)
|
||||
|
||||
if test "x$dbus_have_socklen_t" = "xyes"; then
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue