From: Peter Krempa Date: Fri, 16 Sep 2011 12:14:15 +0000 (+0200) Subject: build: storage: Conditionaly compiled structure caused build fail on OSX X-Git-Tag: v0.9.5-rc3~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ce3b61fa51653b17f9c5c715a58ddba6de78f3e;p=thirdparty%2Flibvirt.git 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. --- 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__ */