aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/dbus/getpeereid.patch
blob: 5cd2309e391396ed91835ac6dacfd8151cf1122d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff --git a/cmake/ConfigureChecks.cmake b/cmake/ConfigureChecks.cmake
index b7f3702..e2336ba 100644
--- a/cmake/ConfigureChecks.cmake
+++ b/cmake/ConfigureChecks.cmake
@@ -51,6 +51,7 @@ check_symbol_exists(closefrom    "unistd.h"         HAVE_CLOSEFROM)          #
 check_symbol_exists(environ      "unistd.h"                  HAVE_DECL_ENVIRON)
 check_symbol_exists(fstatfs      "sys/vfs.h"                 HAVE_FSTATFS)
 check_symbol_exists(getgrouplist "grp.h"            HAVE_GETGROUPLIST)       #  dbus-sysdeps.c
+check_symbol_exists(getpeereid   "sys/types.h;unistd.h" HAVE_GETPEEREID)     #  dbus-sysdeps.c,
 check_symbol_exists(getpeerucred "ucred.h"          HAVE_GETPEERUCRED)       #  dbus-sysdeps.c, dbus-sysdeps-win.c
 check_symbol_exists(getpwnam_r   "errno.h;pwd.h"    HAVE_GETPWNAM_R)         #  dbus-sysdeps-util-unix.c
 check_symbol_exists(getrandom    "sys/random.h"             HAVE_GETRANDOM)
diff --git a/cmake/config.h.cmake b/cmake/config.h.cmake
index 77fc19c..2f25643 100644
--- a/cmake/config.h.cmake
+++ b/cmake/config.h.cmake
@@ -140,6 +140,9 @@
 /* Define to 1 if you have getgrouplist */
 #cmakedefine   HAVE_GETGROUPLIST 1
 
+/* Define to 1 if you have getpeereid */
+#cmakedefine   HAVE_GETPEEREID 1
+
 /* Define to 1 if you have getpeerucred */
 #cmakedefine   HAVE_GETPEERUCRED 1