FreeBSD patch
Benedikt Meurer
benny@xfce.org
Fri, 13 Feb 2004 20:58:34 +0100
This is a multi-part message in MIME format.
--------------030501060903030105030808
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Hello,
Small patch to get dbus working on FreeBSD/NetBSD.
regards,
Benedikt
--
XFce -- small, stable, fast -- http://www.xfce.org/
--------------030501060903030105030808
Content-Type: text/plain;
name="dbus-freebsd-patch-20040213.diff"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="dbus-freebsd-patch-20040213.diff"
SW5kZXg6IGRidXMvZGJ1cy1zeXNkZXBzLmMKPT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpSQ1MgZmlsZTogL2N2
cy9kYnVzL2RidXMvZGJ1cy9kYnVzLXN5c2RlcHMuYyx2CnJldHJpZXZpbmcgcmV2aXNpb24g
MS42OApkaWZmIC11IC1yMS42OCBkYnVzLXN5c2RlcHMuYwotLS0gZGJ1cy9kYnVzLXN5c2Rl
cHMuYwkyIERlYyAyMDAzIDEwOjQ0OjIxIC0wMDAwCTEuNjgKKysrIGRidXMvZGJ1cy1zeXNk
ZXBzLmMJMTMgRmViIDIwMDQgMTk6NTY6MDkgLTAwMDAKQEAgLTQxNyw3ICs0MTcsNyBAQAog
CiAgIGlmIChhYnN0cmFjdCkKICAgICB7Ci0jaWZkZWYgSEFWRV9BQlNUUkFDVF9TT0NLRVRT
CisjaWYgZGVmaW5lZChIQVZFX0FCU1RSQUNUX1NPQ0tFVFMpICYmIEhBVkVfQUJTVFJBQ1Rf
U09DS0VUUwogICAgICAgLyogcmVtZW1iZXIgdGhhdCBhYnN0cmFjdCBuYW1lcyBhcmVuJ3Qg
bnVsLXRlcm1pbmF0ZWQgc28gd2UgcmVseQogICAgICAgICogb24gc3VuX3BhdGggYmVpbmcg
ZmlsbGVkIGluIHdpdGggemVyb2VzIGFib3ZlLgogICAgICAgICovCkBA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PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAvY3ZzL2RidXMvZGJ1cy9k
YnVzL2RidXMtc2VydmVyLmMsdgpyZXRyaWV2aW5nIHJldmlzaW9uIDEuMzIKZGlmZiAtdSAt
cjEuMzIgZGJ1cy1zZXJ2ZXIuYwotLS0gZGJ1cy9kYnVzLXNlcnZlci5jCTIgRGVjIDIwMDMg
MTA6NDQ6MjEgLTAwMDAJMS4zMgorKysgZGJ1cy9kYnVzLXNlcnZlci5jCTEzIEZlYiAyMDA0
IDE5OjU2OjEwIC0wMDAwCkBAIC0zNTQsNyArMzU0LDcgQEAKICAgICAgICAgICAgICAgCiAg
ICAgICAgICAgICAgIHNlcnZlciA9CiAgICAgICAgICAgICAgICAgX2RidXNfc2VydmVyX25l
d19mb3JfZG9tYWluX3NvY2tldCAoX2RidXNfc3RyaW5nX2dldF9jb25zdF9kYXRhICgmZnVs
bF9wYXRoKSwKLSNpZmRlZiBIQVZFX0FCU1RSQUNUX1NPQ0tFVFMKKyNpZiBkZWZpbmVkKEhB
VkVfQUJTVFJBQ1RfU09DS0VUUykgJiYgSEFWRV9BQlNUUkFDVF9TT0NLRVRTCiAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgVFJVRSwKICNl
bHNlCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgRkFMU0UsCg==
--------------030501060903030105030808--