Blame SOURCES/fuse2-0002-add-fix-for-namespace-conflict-in-fuse_kernel.h.patch

25247e
From: Tom Callaway <spot@fedoraproject.org>
25247e
Date: Wed, 26 Jun 2013 09:34:52 -0400
25247e
Subject: [PATCH] add fix for namespace conflict in fuse_kernel.h
25247e
25247e
https://bugzilla.redhat.com/show_bug.cgi?id=970768
25247e
25247e
diff --git a/include/fuse_kernel.h b/include/fuse_kernel.h
25247e
index c632b58..9e02fe3 100644
25247e
--- a/include/fuse_kernel.h
25247e
+++ b/include/fuse_kernel.h
25247e
@@ -88,12 +88,16 @@
25247e
 #ifndef _LINUX_FUSE_H
25247e
 #define _LINUX_FUSE_H
25247e
 
25247e
-#include <sys/types.h>
25247e
+#ifdef __linux__
25247e
+#include <linux/types.h>
25247e
+#else
25247e
+#include <stdint.h>
25247e
 #define __u64 uint64_t
25247e
 #define __s64 int64_t
25247e
 #define __u32 uint32_t
25247e
 #define __s32 int32_t
25247e
 #define __u16 uint16_t
25247e
+#endif
25247e
 
25247e
 /*
25247e
  * Version negotiation: