From: Pavel Hrdina Date: Tue, 3 Feb 2015 13:20:25 +0000 (+0100) Subject: virutil: fix MinGW build X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=47dd6c433500b1ed6535d63bc30ee38e2d3d57a6;p=libvirt.git 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 --- diff --git a/src/util/virutil.c b/src/util/virutil.c index c9052093cd..4a95292f5e 100644 --- a/src/util/virutil.c +++ b/src/util/virutil.c @@ -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) {