more cleanup

This commit is contained in:
Nguyen Anh Quynh
2017-01-10 16:29:47 +08:00
parent c1f39c3db2
commit 7512ff57de
18 changed files with 1 additions and 778 deletions

View File

@@ -27,7 +27,6 @@
#define QEMU_OS_WIN32_H
#include <windows.h>
#include <winsock2.h>
#include <setjmp.h>
/* Workaround for older versions of MinGW. */
@@ -76,36 +75,10 @@
/* Declaration of ffs() is missing in MinGW's strings.h. */
int ffs(int i);
/* Missing POSIX functions. Don't use MinGW-w64 macros. */
#undef gmtime_r
struct tm *gmtime_r(const time_t *timep, struct tm *result);
#undef localtime_r
struct tm *localtime_r(const time_t *timep, struct tm *result);
// char *strtok_r(char *str, const char *delim, char **saveptr);
static inline void os_setup_signal_handling(void) {}
static inline void os_setup_post(void) {}
void os_set_line_buffering(void);
static inline void os_set_proc_name(const char *dummy) {}
size_t getpagesize(void);
#if !defined(EPROTONOSUPPORT)
# define EPROTONOSUPPORT EINVAL
#endif
int setenv(const char *name, const char *value, int overwrite);
typedef struct {
long tv_sec;
long tv_usec;
} qemu_timeval;
int qemu_gettimeofday(qemu_timeval *tp);
static inline int os_mlock(void)
{
return -ENOSYS;
}
#endif