Patchwork [v21,02/11] qemu-thread.h: include inttypes.h

login
register
mail settings
Submitter Alon Levy
Date March 17, 2011, 2:49 p.m.
Message ID <1300373376-13890-3-git-send-email-alevy@redhat.com>
Download mbox | patch
Permalink /patch/87386/
State New
Headers show

Comments

Alon Levy - March 17, 2011, 2:49 p.m.
qemu-thread.h relies on uint64_t being defined, but doesn't include
inttypes.h explicitly. This makes it easier to use it from vscclient (part
of libcacard).
---
 qemu-thread.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/qemu-thread.h b/qemu-thread.h
index acdb6b2..b144e73 100644
--- a/qemu-thread.h
+++ b/qemu-thread.h
@@ -1,6 +1,8 @@ 
 #ifndef __QEMU_THREAD_H
 #define __QEMU_THREAD_H 1
 
+#include <inttypes.h>
+
 typedef struct QemuMutex QemuMutex;
 typedef struct QemuCond QemuCond;
 typedef struct QemuThread QemuThread;