virtfs-proxy-helper: Provide __u64 for broken sys/capability.h
authorBruce Rogers <brogers@suse.com>
Thu, 16 May 2013 10:39:10 +0000 (12:39 +0200)
committerJunfeng Dong <junfeng.dong@intel.com>
Tue, 19 Nov 2013 10:57:39 +0000 (18:57 +0800)
Fixes the build on SLE 11 SP2.

[AF: Extend to ppc64]

fsdev/virtfs-proxy-helper.c

index 713a7b2..b8da77d 100644 (file)
@@ -9,6 +9,13 @@
  * the COPYING file in the top-level directory.
  */
 
+/* work around a broken sys/capability.h */
+#if defined(__i386__)
+typedef unsigned long long __u64;
+#endif
+#if defined(__powerpc64__)
+#include <asm/types.h>
+#endif
 #include <sys/resource.h>
 #include <getopt.h>
 #include <syslog.h>