Accepting request 115250 from home:dimstar:gcc47

Fix build against kernel 3.3... umode_t has vanished...

OBS-URL: https://build.opensuse.org/request/show/115250
OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/ocfs2-tools?expand=0&rev=36
This commit is contained in:
2012-04-26 05:07:50 +00:00
committed by Git OBS Bridge
parent b422162fad
commit adbb5de233
3 changed files with 41 additions and 5 deletions

View File

@@ -0,0 +1,14 @@
Index: ocfs2-tools/include/ocfs2-kernel/ocfs2_fs.h
===================================================================
--- ocfs2-tools.orig/include/ocfs2-kernel/ocfs2_fs.h
+++ ocfs2-tools/include/ocfs2-kernel/ocfs2_fs.h
@@ -316,6 +316,9 @@
*/
#define OCFS2_CLUSTER_O2CB_GLOBAL_HEARTBEAT (0x01)
+// Reintroduce umode_t, which disappeared in kernel 3.3
+typedef unsigned short umode_t;
+
struct ocfs2_system_inode_info {
char *si_name;
int si_iflags;