]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: Include stdint.h because of uint32_t
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 26 Jan 2012 18:14:01 +0000 (19:14 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 26 Jan 2012 18:14:01 +0000 (19:14 +0100)
Some files are using uint32_t or int64_t without including
stdint.h which defines them. Fix this.

src/util/virhash.h
src/util/virhashcode.h
src/util/virrandom.h

index 0170eaa3f2e1cf82525edbc5181c902a9b673e82..7acbcbdd625dc048a1a823946b05d04183bafe6f 100644 (file)
@@ -13,6 +13,8 @@
 #ifndef __VIR_HASH_H__
 # define __VIR_HASH_H__
 
+# include <stdint.h>
+
 /*
  * The hash table.
  */
index 867e04ea97ccecd13e8d56bc038f654c975f99ea..a38043ed0d2991ca6c1215b621e31261e1938000 100644 (file)
@@ -29,6 +29,7 @@
 # define __VIR_HASH_CODE_H__
 
 # include "internal.h"
+# include <stdint.h>
 
 extern uint32_t virHashCodeGen(const void *key, size_t len, uint32_t seed);
 
index eede3731c2cdd45f40c0ee34350231cb1b288245..e180a2fb8a4cbd25e845a9975626b437c7964fe4 100644 (file)
@@ -23,6 +23,7 @@
 # define __VIR_RANDOM_H__
 
 # include "internal.h"
+# include <stdint.h>
 
 int virRandomInitialize(uint32_t seed) ATTRIBUTE_RETURN_CHECK;
 uint64_t virRandomBits(int nbits);