qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 2/2] cache-utils.h needs stdint.h for uintptr_t


From: David Gibson
Subject: [Qemu-devel] [PATCH 2/2] cache-utils.h needs stdint.h for uintptr_t
Date: Thu, 8 Mar 2012 12:09:41 +1100

cache-utils.h uses the C99 standard uintptr_t type.  However, that type
comes from stdint.h which is not #included before cache-utils.h in all
configurations.  This patch adds the necessary include to fix this.

Signed-off-by: David Gibson <address@hidden>
---
 cache-utils.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/cache-utils.h b/cache-utils.h
index 04a6e2e..b0f1786 100644
--- a/cache-utils.h
+++ b/cache-utils.h
@@ -1,6 +1,8 @@
 #ifndef QEMU_CACHE_UTILS_H
 #define QEMU_CACHE_UTILS_H
 
+#include <stdint.h>
+
 #if defined(_ARCH_PPC)
 struct qemu_cache_conf {
     unsigned long dcache_bsize;
-- 
1.7.9.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]