diff --git a/lib/guestfs-internal.h b/lib/guestfs-internal.h index 515c4fd24..b3f887935 100644 --- a/lib/guestfs-internal.h +++ b/lib/guestfs-internal.h @@ -37,6 +37,13 @@ #include +#include "guestfs-utils.h" + +/* Defined in gnulib "hash.h", but we explicitly define it here to + * avoid having to include that header everywhere. + */ +typedef struct hash_table Hash_table; + /* Minimum required version of libvirt for the libvirt backend. * * This is also checked at runtime because you can dynamically link @@ -56,10 +63,6 @@ #endif #endif -#include "hash.h" - -#include "guestfs-utils.h" - #if ENABLE_PROBES #include /* NB: The 'name' parameter is a literal identifier, NOT a string! */ diff --git a/lib/handle.c b/lib/handle.c index 1ba60aaa8..290652d8c 100644 --- a/lib/handle.c +++ b/lib/handle.c @@ -31,6 +31,7 @@ #include #include +#include "hash.h" #include "ignore-value.h" #include "c-ctype.h" #include "getprogname.h"