]> xenbits.xensource.com Git - libvirt.git/commitdiff
build: storage: Conditionaly compiled structure caused build fail on OSX
authorPeter Krempa <pkrempa@redhat.com>
Fri, 16 Sep 2011 12:14:15 +0000 (14:14 +0200)
committerDaniel Veillard <veillard@redhat.com>
Fri, 16 Sep 2011 13:03:50 +0000 (21:03 +0800)
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

index 54c6739c6ad3fcd96cad1e23f297daed696a03d1..4f6905602c68b1f3611c1921faf0368386877307 100644 (file)
 # 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__ */