From 1ce3b61fa51653b17f9c5c715a58ddba6de78f3e Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Fri, 16 Sep 2011 14:14:15 +0200 Subject: [PATCH] build: storage: Conditionaly compiled structure caused build fail on OSX Struct virStoragePoolProbeResult was compiled in conditionaly, but virStorageBackendFileSystemProbe used it unconditionaly. This patch exempts the struct from conditional include. --- src/storage/storage_backend_fs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/storage/storage_backend_fs.h b/src/storage/storage_backend_fs.h index 54c6739c6a..4f6905602c 100644 --- a/src/storage/storage_backend_fs.h +++ b/src/storage/storage_backend_fs.h @@ -29,12 +29,13 @@ # if WITH_STORAGE_FS extern virStorageBackend virStorageBackendFileSystem; extern virStorageBackend virStorageBackendNetFileSystem; +# endif + typedef enum { FILESYSTEM_PROBE_FOUND, FILESYSTEM_PROBE_NOT_FOUND, FILESYSTEM_PROBE_ERROR, } virStoragePoolProbeResult; -# endif extern virStorageBackend virStorageBackendDirectory; #endif /* __VIR_STORAGE_BACKEND_FS_H__ */ -- 2.47.2