dbus: Fix compiling with newer glibc.

This commit is contained in:
Michael Tremer
2012-08-07 11:28:52 +02:00
parent 70166a4fc6
commit 265f6b972f
2 changed files with 12 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
--- dbus-1.0.1.orig/dbus/dbus-sysdeps-unix.c 2009-01-01 03:50:33.000000000 +0200
+++ dbus-1.0.1.orig/dbus/dbus-sysdeps-unix.c 2009-01-01 04:09:24.000000000 +0200
@@ -992,7 +992,7 @@
_dbus_verbose ("read credentials byte\n");
{
-#ifdef SO_PEERCRED
+#if defined(SO_PEERCRED) && defined(HAVE_GETPEERUCRED)
struct ucred cr;
int cr_len = sizeof (cr);