Fix compilation on older sanlock

Temporary fix since compilation broke with older version of
sanlock following acbd4965c4
This commit is contained in:
Daniel Veillard 2012-06-25 18:31:09 +08:00
parent 9273e07f9e
commit 0fce94fe1b

View File

@ -55,6 +55,14 @@
#define VIR_LOCK_MANAGER_SANLOCK_AUTO_DISK_LOCKSPACE "__LIBVIRT__DISKS__" #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 struct _virLockManagerSanlockDriver virLockManagerSanlockDriver;
typedef virLockManagerSanlockDriver *virLockManagerSanlockDriverPtr; typedef virLockManagerSanlockDriver *virLockManagerSanlockDriverPtr;