]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Fix compilation on older sanlock v0.9.13-rc1
authorDaniel Veillard <veillard@redhat.com>
Mon, 25 Jun 2012 10:31:09 +0000 (18:31 +0800)
committerDaniel Veillard <veillard@redhat.com>
Mon, 25 Jun 2012 10:36:28 +0000 (18:36 +0800)
Temporary fix since compilation broke with older version of
sanlock following acbd4965c44c4dbc676dfe89aff970052e376073

src/locking/lock_driver_sanlock.c

index 16941c90cb3940ad1f652d6370a9207ffe525309..9668ca960d15919a4bff57b69c0267c20100af42 100644 (file)
 
 #define VIR_LOCK_MANAGER_SANLOCK_AUTO_DISK_LOCKSPACE "__LIBVIRT__DISKS__"
 
+/*
+ * temporary fix for the case where the sanlock devel package is
+ * too old to provide that define, and probably the functionality too
+ */
+#ifndef SANLK_RES_SHARED
+#define SANLK_RES_SHARED    0x4
+#endif
+
 typedef struct _virLockManagerSanlockDriver virLockManagerSanlockDriver;
 typedef virLockManagerSanlockDriver *virLockManagerSanlockDriverPtr;