qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: David Gibson <david@gibson.dropbear.id.au>
To: qemu-trivial@nongnu.org
Cc: qemu-devel@nongnu.org, David Gibson <david@gibson.dropbear.id.au>
Subject: [Qemu-devel] [PATCH 2/2] cache-utils.h needs stdint.h for uintptr_t
Date: Thu,  8 Mar 2012 12:09:41 +1100	[thread overview]
Message-ID: <1331168981-13139-2-git-send-email-david@gibson.dropbear.id.au> (raw)
In-Reply-To: <1331168981-13139-1-git-send-email-david@gibson.dropbear.id.au>

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 <david@gibson.dropbear.id.au>
---
 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	other threads:[~2012-03-08  1:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-08  1:09 [Qemu-devel] [PATCH 1/2] .gitignore update David Gibson
2012-03-08  1:09 ` David Gibson [this message]
2012-03-08  6:10   ` [Qemu-devel] [PATCH 2/2] cache-utils.h needs stdint.h for uintptr_t Stefan Weil
2012-03-08 10:25     ` David Gibson
2012-03-15  8:21 ` [Qemu-devel] [PATCH 1/2] .gitignore update Stefan Hajnoczi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1331168981-13139-2-git-send-email-david@gibson.dropbear.id.au \
    --to=david@gibson.dropbear.id.au \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).