]> git.proxmox.com Git - qemu.git/blobdiff - osdep.h
target-mips: Remove unused inline function
[qemu.git] / osdep.h
diff --git a/osdep.h b/osdep.h
index 03503837119bbaaa1f9c82f20cadf3156811ab04..9db87669646a9949cf0cde964a8b5cafce5c2b04 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)
 #define inline always_inline
 #endif
 
-#ifdef __i386__
-#define REGPARM __attribute((regparm(3)))
-#else
-#define REGPARM
-#endif
-
 #define qemu_printf printf
 
 int qemu_daemon(int nochdir, int noclose);
@@ -146,4 +147,6 @@ static inline void qemu_timersub(const struct timeval *val1,
 #define qemu_timersub timersub
 #endif
 
+void qemu_set_cloexec(int fd);
+
 #endif