From b7a7912411d0a59d7a850b6534186636aca40540 Mon Sep 17 00:00:00 2001 From: Erik Skultety Date: Mon, 29 Jan 2018 17:07:38 +0100 Subject: [PATCH] build: Fix broken build on FreeBSD and OSX after recent nodedev series Commits f83c7c88 and 6eb1f2b9 broke the build on FreeBSD and OSX because of symbols being undefined for those platforms. Signed-off-by: Erik Skultety --- src/conf/node_device_conf.c | 6 ++++++ src/util/virpci.c | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/src/conf/node_device_conf.c b/src/conf/node_device_conf.c index dfd61b7b74..fd8f4e4a94 100644 --- a/src/conf/node_device_conf.c +++ b/src/conf/node_device_conf.c @@ -2805,6 +2805,12 @@ virNodeDeviceGetPCIDynamicCaps(const char *sysfsPath, #else +int +virNodeDeviceGetSCSIHostCaps(virNodeDevCapSCSIHostPtr scsi_host ATTRIBUTE_UNUSED) +{ + return -1; +} + int virNodeDeviceGetPCIDynamicCaps(const char *sysfsPath ATTRIBUTE_UNUSED, virNodeDevCapPCIDevPtr pci_dev ATTRIBUTE_UNUSED) diff --git a/src/util/virpci.c b/src/util/virpci.c index b6a5739cad..55e4c3e492 100644 --- a/src/util/virpci.c +++ b/src/util/virpci.c @@ -3158,6 +3158,15 @@ virPCIGetVirtualFunctionInfo(const char *vf_sysfs_device_path ATTRIBUTE_UNUSED, virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported)); return -1; } + + +ssize_t +virPCIGetMdevTypes(const char *sysfspath ATTRIBUTE_UNUSED, + virMediatedDeviceTypePtr **types ATTRIBUTE_UNUSED) +{ + virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported)); + return -1; +} #endif /* __linux__ */ int