dbus/dbus.patch

changeset 12
333964c621f1
child 76
11e79e472059
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dbus/dbus.patch	Sun Jan 04 08:40:58 2009 +0100
     1.3 @@ -0,0 +1,38 @@
     1.4 +Index: dbus/dbus-internals.c
     1.5 +--- dbus/dbus-internals.c.orig	2006-11-17 20:12:18 +0100
     1.6 ++++ dbus/dbus-internals.c	2006-11-18 12:35:56 +0100
     1.7 +@@ -512,6 +512,14 @@
     1.8 +   uuid->as_uint32s[DBUS_UUID_LENGTH_WORDS - 1] = DBUS_UINT32_TO_BE (now);
     1.9 +   
    1.10 +   _dbus_generate_random_bytes_buffer (uuid->as_bytes, DBUS_UUID_LENGTH_BYTES - 4);
    1.11 ++
    1.12 ++  /* brand UUID as variant DCE 1.1 */
    1.13 ++  uuid->as_bytes[8] &= ~0xc0;
    1.14 ++  uuid->as_bytes[8] |= (0x02 << 6);
    1.15 ++
    1.16 ++  /* brand UUID as version 4 */
    1.17 ++  uuid->as_bytes[6] &= ~0xf0;
    1.18 ++  uuid->as_bytes[6] |= (0x04 << 4);
    1.19 + }
    1.20 + 
    1.21 + /**
    1.22 +Index: dbus/dbus-sysdeps-util-unix.c
    1.23 +--- dbus/dbus-sysdeps-util-unix.c.orig	2006-11-02 20:19:08 +0100
    1.24 ++++ dbus/dbus-sysdeps-util-unix.c	2006-11-18 12:33:22 +0100
    1.25 +@@ -31,6 +31,7 @@
    1.26 + #include "dbus-test.h"
    1.27 + 
    1.28 + #include <sys/types.h>
    1.29 ++#include <sys/param.h>
    1.30 + #include <stdlib.h>
    1.31 + #include <string.h>
    1.32 + #include <signal.h>
    1.33 +@@ -526,6 +527,8 @@
    1.34 + #   else
    1.35 + #       if defined(NAME_MAX)
    1.36 + 	 name_max = NAME_MAX;
    1.37 ++#       elif defined(MAXPATHLEN)
    1.38 ++	 name_max = MAXPATHLEN;
    1.39 + #       else
    1.40 + #           error "buffer size for readdir_r cannot be determined"
    1.41 + #       endif

mercurial