mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-04-21 12:20:44 +02:00
Fix build on NetBSD 6.1.1 with gcc 4.5.3
There are two build failure on NetBSD 6.1.1 with gcc 4.5.3, the first one is char to int, warning treated as error. The second one is a mismatch between format string and arguments. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69842 [adjusted commit message -smcv] Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
This commit is contained in:
parent
d56ca38ef6
commit
fd5271f839
2 changed files with 4 additions and 1 deletions
|
|
@ -132,7 +132,7 @@ read_machine_uuid_if_needed (void)
|
|||
goto out;
|
||||
|
||||
/* rstrip the read uuid */
|
||||
while (len > 31 && isspace(uuid[len - 1]))
|
||||
while (len > 31 && isspace((int) uuid[len - 1]))
|
||||
len--;
|
||||
|
||||
if (len != 32)
|
||||
|
|
|
|||
|
|
@ -106,6 +106,9 @@ monitor_filter_func (DBusConnection *connection,
|
|||
|
||||
#ifdef __APPLE__
|
||||
#define PROFILE_TIMED_FORMAT "%s\t%lu\t%d"
|
||||
#elif defined(__NetBSD__)
|
||||
#include <inttypes.h>
|
||||
#define PROFILE_TIMED_FORMAT "%s\t%" PRId64 "\t%d"
|
||||
#else
|
||||
#define PROFILE_TIMED_FORMAT "%s\t%lu\t%lu"
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue