aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/dbus/getpeereid.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/dbus/getpeereid.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/dbus/getpeereid.patch')
-rw-r--r--vcpkg/ports/dbus/getpeereid.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/vcpkg/ports/dbus/getpeereid.patch b/vcpkg/ports/dbus/getpeereid.patch
new file mode 100644
index 0000000..5cd2309
--- /dev/null
+++ b/vcpkg/ports/dbus/getpeereid.patch
@@ -0,0 +1,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
+