From: Michal Privoznik Date: Thu, 26 Jan 2012 18:14:01 +0000 (+0100) Subject: util: Include stdint.h because of uint32_t X-Git-Tag: v0.9.10-rc1~110 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=897319073568ebab7d2395d02b1280e6f765cb63;p=thirdparty%2Flibvirt.git util: Include stdint.h because of uint32_t Some files are using uint32_t or int64_t without including stdint.h which defines them. Fix this. --- diff --git a/src/util/virhash.h b/src/util/virhash.h index 0170eaa3f2..7acbcbdd62 100644 --- a/src/util/virhash.h +++ b/src/util/virhash.h @@ -13,6 +13,8 @@ #ifndef __VIR_HASH_H__ # define __VIR_HASH_H__ +# include + /* * The hash table. */ diff --git a/src/util/virhashcode.h b/src/util/virhashcode.h index 867e04ea97..a38043ed0d 100644 --- a/src/util/virhashcode.h +++ b/src/util/virhashcode.h @@ -29,6 +29,7 @@ # define __VIR_HASH_CODE_H__ # include "internal.h" +# include extern uint32_t virHashCodeGen(const void *key, size_t len, uint32_t seed); diff --git a/src/util/virrandom.h b/src/util/virrandom.h index eede3731c2..e180a2fb8a 100644 --- a/src/util/virrandom.h +++ b/src/util/virrandom.h @@ -23,6 +23,7 @@ # define __VIR_RANDOM_H__ # include "internal.h" +# include int virRandomInitialize(uint32_t seed) ATTRIBUTE_RETURN_CHECK; uint64_t virRandomBits(int nbits);