mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-05 12:18:13 +02:00
Modernize checks for cmsgcred
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
5906c072da
commit
dac0a716ad
1 changed files with 5 additions and 3 deletions
|
|
@ -658,14 +658,16 @@ fi
|
|||
|
||||
dnl Check for various credentials.
|
||||
AC_MSG_CHECKING(for struct cmsgcred)
|
||||
AC_TRY_COMPILE([
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
],[
|
||||
]], [[
|
||||
struct cmsgcred cred;
|
||||
|
||||
cred.cmcred_pid = 0;
|
||||
],dbus_have_struct_cmsgcred=yes,dbus_have_struct_cmsgcred=no)
|
||||
]])],
|
||||
[dbus_have_struct_cmsgcred=yes],
|
||||
[dbus_have_struct_cmsgcred=no])
|
||||
AC_MSG_RESULT($dbus_have_struct_cmsgcred)
|
||||
|
||||
if test x$dbus_have_struct_cmsgcred = xyes; then
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue