mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-01-19 11:30:29 +01:00
cmake: Check for setresuid and getresuid
This was not being checked, so the codepaths using the define were
never included.
(cherry picked from commit dafb5ddc09)
This commit is contained in:
parent
e1d2cd286b
commit
a817ff39d2
2 changed files with 4 additions and 0 deletions
|
|
@ -75,6 +75,8 @@ check_symbol_exists(vsnprintf "stdio.h" HAVE_VSNPRINTF)
|
|||
check_symbol_exists(MSG_NOSIGNAL "sys/socket.h" HAVE_DECL_MSG_NOSIGNAL)
|
||||
check_symbol_exists(environ "unistd.h" HAVE_DECL_ENVIRON)
|
||||
check_symbol_exists(LOG_PERROR "syslog.h" HAVE_DECL_LOG_PERROR)
|
||||
check_symbol_exists(setresuid "unistd.h" HAVE_SETRESUID)
|
||||
check_symbol_exists(getresuid "unistd.h" HAVE_GETRESUID)
|
||||
|
||||
check_struct_member(cmsgcred cmcred_pid "sys/types.h;sys/socket.h" HAVE_CMSGCRED) # dbus-sysdeps.c
|
||||
|
||||
|
|
|
|||
|
|
@ -247,6 +247,8 @@
|
|||
#cmakedefine HAVE_VASPRINTF 1
|
||||
#cmakedefine HAVE_VSNPRINTF 1
|
||||
|
||||
#cmakedefine HAVE_SETRESUID 1
|
||||
#cmakedefine HAVE_GETRESUID 1
|
||||
/* whether -export-dynamic was passed to libtool */
|
||||
#cmakedefine DBUS_BUILT_R_DYNAMIC 1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue