From d9f9c2518dbf7c728588442b68916ec6c8b1f91f Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Thu, 17 Jun 2010 14:45:16 +0100 Subject: [PATCH] Fix dbus-sysdeps.h on amd64, again. HAVE_STDINT_H is defined in config.h, but that's not much use if config.h isn't included. The new file dbus/dbus-config.c includes this header without including config.h first, so fails to build. Since dbus-sysdeps.h is internal, we can include config.h with impunity, rather than relying on our callers to do so. Also, there's no need to include stdint.h twice. --- dbus/dbus-sysdeps.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dbus/dbus-sysdeps.h b/dbus/dbus-sysdeps.h index 0fd5da73a..c98db36d1 100644 --- a/dbus/dbus-sysdeps.h +++ b/dbus/dbus-sysdeps.h @@ -25,6 +25,8 @@ #ifndef DBUS_SYSDEPS_H #define DBUS_SYSDEPS_H +#include "config.h" + #ifdef HAVE_STDINT_H #include #endif @@ -39,10 +41,6 @@ #include #include -#ifdef HAVE_STDINT_H -#include -#endif - /* AIX sys/poll.h does #define events reqevents, and other * wonderousness, so must include sys/poll before declaring * DBusPollFD -- 2.47.3