From f8afa3245c2162a259f6892f0b0f60c8a7dc81de Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 11 Feb 2015 19:04:17 +0000 Subject: [PATCH 1/2] [fix for 3/5] do not try to support SO_PEERSEC on ye olde glibc --- dbus/dbus-sysdeps-unix.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/dbus/dbus-sysdeps-unix.c b/dbus/dbus-sysdeps-unix.c index 29d81d5..2184cea 100644 --- a/dbus/dbus-sysdeps-unix.c +++ b/dbus/dbus-sysdeps-unix.c @@ -1671,15 +1671,11 @@ static dbus_bool_t add_linux_security_label_to_credentials (int client_fd, DBusCredentials *credentials) { -#if defined(__linux__) +#if defined(__linux__) && defined(SO_PEERSEC) DBusString buf; socklen_t len = 1024; dbus_bool_t oom = FALSE; -#ifndef SO_PEERSEC -# define SO_PEERSEC 31 -#endif - if (!_dbus_string_init_preallocated (&buf, len) || !_dbus_string_set_length (&buf, len)) return FALSE; -- 2.1.4