Re: [PATCH] util: fix virfcp build on non-Linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Roman Bogorodskiy <bogorodskiy@xxxxxxxxx> [2017-05-26, 08:05PM +0400]:
- Include virerror.h for virReportSystemError
- Rename stub functions to match original function names
---
Pushed under the build breaker rule.

src/util/virfcp.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/util/virfcp.c b/src/util/virfcp.c
index 3c7fab917..7660ba720 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)
{
--
2.13.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


Oops, thank you. Will have to look out for this in the future.

Bjoern

--
IBM Systems
Linux on z Systems & Virtualization Development
------------------------------------------------------------------------
IBM Deutschland
Schönaicher Str. 220
71032 Böblingen
Phone: +49 7031 16 1819
E-Mail: bwalk@xxxxxxxxxx
------------------------------------------------------------------------
IBM Deutschland Research & Development GmbH
Vorsitzende des Aufsichtsrats: Martina Koederitz
Geschäftsführung: Dirk Wittkopp
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294

Attachment: signature.asc
Description: PGP signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux