mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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:
@@ -2578,10 +2578,18 @@ virGetListenFDs(void)
|
|||||||
|
|
||||||
#endif /* WIN32 */
|
#endif /* WIN32 */
|
||||||
|
|
||||||
|
#ifndef WIN32
|
||||||
long virGetSystemPageSize(void)
|
long virGetSystemPageSize(void)
|
||||||
{
|
{
|
||||||
return sysconf(_SC_PAGESIZE);
|
return sysconf(_SC_PAGESIZE);
|
||||||
}
|
}
|
||||||
|
#else /* WIN32 */
|
||||||
|
long virGetSystemPageSize(void)
|
||||||
|
{
|
||||||
|
errno = ENOSYS;
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
#endif /* WIN32 */
|
||||||
|
|
||||||
long virGetSystemPageSizeKB(void)
|
long virGetSystemPageSizeKB(void)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user