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).

Backports commit a28c2f2df7679e3a87789e9fb7ed69331f697297 from qemu
This commit is contained in:
Stefan Weil 2018-02-17 19:10:13 -05:00 committed by Lioncash
parent 1918761803
commit 5218799171
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7
2 changed files with 2 additions and 2 deletions

View file

@ -73,7 +73,7 @@
#define sigsetjmp(env, savemask) setjmp(env)
#define siglongjmp(env, val) longjmp(env, val)
size_t getpagesize(void);
int getpagesize(void);
#if !defined(EPROTONOSUPPORT)
# define EPROTONOSUPPORT EINVAL

View file

@ -94,7 +94,7 @@ void qemu_anon_ram_free(void *ptr, size_t size)
}
}
size_t getpagesize(void)
int getpagesize(void)
{
SYSTEM_INFO system_info;