From: Roman Bogorodskiy Date: Fri, 26 May 2017 16:00:51 +0000 (+0400) Subject: util: fix virfcp build on non-Linux X-Git-Tag: v3.4.0-rc1^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=981e2c70973454cad360f7c9eec2d6ded0a86747;p=thirdparty%2Flibvirt.git util: fix virfcp build on non-Linux - Include virerror.h for virReportSystemError - Rename stub functions to match original function names --- diff --git a/src/util/virfcp.c b/src/util/virfcp.c index 3c7fab9173..7660ba7205 100644 --- a/src/util/virfcp.c +++ b/src/util/virfcp.c @@ -26,6 +26,7 @@ #include "viralloc.h" #include "virfile.h" +#include "virerror.h" #include "virstring.h" #include "virfcp.h" @@ -80,14 +81,14 @@ virFCReadRportValue(const char *rport, #else bool -virSysfsIsCapableFCRport(const char *rport ATTRIBUTE_UNUSED) +virFCIsCapableRport(const char *rport ATTRIBUTE_UNUSED) { virReportSystemError(ENOSYS, "%s", _("Not supported on this platform")); return false; } int -virSysfsReadFCRport(const char *rport ATTRIBUTE_UNUSED, +virFCReadRportValue(const char *rport ATTRIBUTE_UNUSED, const char *entry ATTRIBUTE_UNUSED, char **result ATTRIBUTE_UNUSED) {