From 47dd6c433500b1ed6535d63bc30ee38e2d3d57a6 Mon Sep 17 00:00:00 2001 From: Pavel Hrdina Date: Tue, 3 Feb 2015 14:20:25 +0100 Subject: [PATCH] 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 --- src/util/virutil.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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) { -- 2.47.2