mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
util: fix virfcp build on non-Linux
- Include virerror.h for virReportSystemError - Rename stub functions to match original function names
This commit is contained in:
parent
ca30bed9f7
commit
981e2c7097
@ -26,6 +26,7 @@
|
|||||||
|
|
||||||
#include "viralloc.h"
|
#include "viralloc.h"
|
||||||
#include "virfile.h"
|
#include "virfile.h"
|
||||||
|
#include "virerror.h"
|
||||||
#include "virstring.h"
|
#include "virstring.h"
|
||||||
|
|
||||||
#include "virfcp.h"
|
#include "virfcp.h"
|
||||||
@ -80,14 +81,14 @@ virFCReadRportValue(const char *rport,
|
|||||||
#else
|
#else
|
||||||
|
|
||||||
bool
|
bool
|
||||||
virSysfsIsCapableFCRport(const char *rport ATTRIBUTE_UNUSED)
|
virFCIsCapableRport(const char *rport ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
virReportSystemError(ENOSYS, "%s", _("Not supported on this platform"));
|
virReportSystemError(ENOSYS, "%s", _("Not supported on this platform"));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
virSysfsReadFCRport(const char *rport ATTRIBUTE_UNUSED,
|
virFCReadRportValue(const char *rport ATTRIBUTE_UNUSED,
|
||||||
const char *entry ATTRIBUTE_UNUSED,
|
const char *entry ATTRIBUTE_UNUSED,
|
||||||
char **result ATTRIBUTE_UNUSED)
|
char **result ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user