]> git.proxmox.com Git - qemu.git/blobdiff - osdep.h
configure: Don't run configure tests with -Werror enabled
[qemu.git] / osdep.h
diff --git a/osdep.h b/osdep.h
index 156666e0ee699dca8844af6a808f99ea1a0d38f0..1e15a4b91cd109c3ef92557cbe4c15197407ee89 100644 (file)
--- a/osdep.h
+++ b/osdep.h
 
 #include <sys/time.h>
 
+#if defined(CONFIG_SOLARIS) && CONFIG_SOLARIS_VERSION < 10
+/* [u]int_fast*_t not in <sys/int_types.h> */
+typedef unsigned char           uint_fast8_t;
+typedef unsigned int            uint_fast16_t;
+typedef signed int              int_fast16_t;
+#endif
+
 #ifndef glue
 #define xglue(x, y) x ## y
 #define glue(x, y) xglue(x, y)
 #ifndef always_inline
 #if !((__GNUC__ < 3) || defined(__APPLE__))
 #ifdef __OPTIMIZE__
+#undef inline
 #define inline __attribute__ (( always_inline )) __inline__
 #endif
 #endif
 #else
+#undef inline
 #define inline always_inline
 #endif
 
@@ -140,4 +149,9 @@ static inline void qemu_timersub(const struct timeval *val1,
 #define qemu_timersub timersub
 #endif
 
+void qemu_set_cloexec(int fd);
+
+void qemu_set_version(const char *);
+const char *qemu_get_version(void);
+
 #endif