[libvirt] [PATCH 2/3] build: storage: Conditionaly compiled structure caused build fail on OSX

Peter Krempa pkrempa at redhat.com
Fri Sep 16 12:14:15 UTC 2011


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 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/storage/storage_backend_fs.h b/src/storage/storage_backend_fs.h
index 54c6739..4f69056 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__ */
-- 
1.7.3.4




More information about the libvir-list mailing list