]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
cmake: Check for setresuid and getresuid
authorAlex Richardson <arichardson@FreeBSD.org>
Wed, 25 May 2022 22:00:08 +0000 (22:00 +0000)
committerAlexander Richardson <alexander.richardson@cl.cam.ac.uk>
Wed, 25 May 2022 22:01:51 +0000 (22:01 +0000)
This was not being checked, so the codepaths using the define were
never included.

cmake/ConfigureChecks.cmake
cmake/config.h.cmake

index f24503338cb7595189da7232c158d30c4cfb1da3..8009effa0bbface086e935828d37b1f214558ec0 100644 (file)
@@ -80,6 +80,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
 
index 68c3dbfab13b2c158bafcb6ed7cc71d454f3df02..cf329b510e32e85807e3761d9e8a0561c948749c 100644 (file)
 #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