mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-03 07:33:50 +00:00
virutil: fix MinGW build
Commit b38da584 introduced two new functions to get a page size but it won't work on Windows. We should take care of this. Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
8bda903528
commit
47dd6c4335
@ -2578,10 +2578,18 @@ virGetListenFDs(void)
|
||||
|
||||
#endif /* WIN32 */
|
||||
|
||||
#ifndef WIN32
|
||||
long virGetSystemPageSize(void)
|
||||
{
|
||||
return sysconf(_SC_PAGESIZE);
|
||||
}
|
||||
#else /* WIN32 */
|
||||
long virGetSystemPageSize(void)
|
||||
{
|
||||
errno = ENOSYS;
|
||||
return -1;
|
||||
}
|
||||
#endif /* WIN32 */
|
||||
|
||||
long virGetSystemPageSizeKB(void)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user