michael@12: Index: dbus/dbus-internals.c michael@12: --- dbus/dbus-internals.c.orig 2006-11-17 20:12:18 +0100 michael@12: +++ dbus/dbus-internals.c 2006-11-18 12:35:56 +0100 michael@12: @@ -512,6 +512,14 @@ michael@12: uuid->as_uint32s[DBUS_UUID_LENGTH_WORDS - 1] = DBUS_UINT32_TO_BE (now); michael@12: michael@12: _dbus_generate_random_bytes_buffer (uuid->as_bytes, DBUS_UUID_LENGTH_BYTES - 4); michael@12: + michael@12: + /* brand UUID as variant DCE 1.1 */ michael@12: + uuid->as_bytes[8] &= ~0xc0; michael@12: + uuid->as_bytes[8] |= (0x02 << 6); michael@12: + michael@12: + /* brand UUID as version 4 */ michael@12: + uuid->as_bytes[6] &= ~0xf0; michael@12: + uuid->as_bytes[6] |= (0x04 << 4); michael@12: } michael@12: michael@12: /** michael@12: Index: dbus/dbus-sysdeps-util-unix.c michael@12: --- dbus/dbus-sysdeps-util-unix.c.orig 2006-11-02 20:19:08 +0100 michael@12: +++ dbus/dbus-sysdeps-util-unix.c 2006-11-18 12:33:22 +0100 michael@12: @@ -31,6 +31,7 @@ michael@12: #include "dbus-test.h" michael@12: michael@12: #include michael@12: +#include michael@12: #include michael@12: #include michael@12: #include michael@12: @@ -526,6 +527,8 @@ michael@12: # else michael@12: # if defined(NAME_MAX) michael@12: name_max = NAME_MAX; michael@12: +# elif defined(MAXPATHLEN) michael@12: + name_max = MAXPATHLEN; michael@12: # else michael@12: # error "buffer size for readdir_r cannot be determined" michael@12: # endif