Browse Source

oslib-win32: Change return type of function getpagesize

getpagesize on Linux returns an int. Fix QEMU's implementation for
Windows to return an int (instead of size_t), too.

This fixes a compiler warning which was introduced recently
(commit 093e3c42).

Signed-off-by: Stefan Weil <sw@weilnetz.de>
pull/33/head
Stefan Weil 11 years ago
parent
commit
a28c2f2df7
  1. 2
      include/sysemu/os-win32.h
  2. 2
      util/oslib-win32.c

2
include/sysemu/os-win32.h

@ -87,7 +87,7 @@ 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);
int getpagesize(void);
#if !defined(EPROTONOSUPPORT)
# define EPROTONOSUPPORT EINVAL

2
util/oslib-win32.c

@ -454,7 +454,7 @@ gint g_poll(GPollFD *fds, guint nfds, gint timeout)
return retval;
}
size_t getpagesize(void)
int getpagesize(void)
{
SYSTEM_INFO system_info;

Loading…
Cancel
Save