Revision 9adea5f7 include/qemu-common.h
b/include/qemu-common.h | ||
---|---|---|
84 | 84 |
# error Unknown pointer size |
85 | 85 |
#endif |
86 | 86 |
|
87 |
#ifndef CONFIG_IOVEC |
|
88 |
#define CONFIG_IOVEC |
|
89 |
struct iovec { |
|
90 |
void *iov_base; |
|
91 |
size_t iov_len; |
|
92 |
}; |
|
93 |
/* |
|
94 |
* Use the same value as Linux for now. |
|
95 |
*/ |
|
96 |
#define IOV_MAX 1024 |
|
97 |
#else |
|
98 |
#include <sys/uio.h> |
|
99 |
#endif |
|
100 |
|
|
101 | 87 |
typedef int (*fprintf_function)(FILE *f, const char *fmt, ...) |
102 | 88 |
GCC_FMT_ATTR(2, 3); |
103 | 89 |
|
... | ... | |
122 | 108 |
void configure_icount(const char *option); |
123 | 109 |
extern int use_icount; |
124 | 110 |
|
125 |
/* FIXME: Remove NEED_CPU_H. */ |
|
126 |
#ifndef NEED_CPU_H |
|
127 |
|
|
128 | 111 |
#include "qemu/osdep.h" |
129 | 112 |
#include "qemu/bswap.h" |
130 | 113 |
|
131 |
#else
|
|
132 |
|
|
114 |
/* FIXME: Remove NEED_CPU_H. */
|
|
115 |
#ifdef NEED_CPU_H |
|
133 | 116 |
#include "cpu.h" |
134 |
|
|
135 | 117 |
#endif /* !defined(NEED_CPU_H) */ |
136 | 118 |
|
137 | 119 |
/* main function, renamed */ |
Also available in: Unified diff