summaryrefslogtreecommitdiffstats
path: root/debian/patches/0100-ansi-c.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0100-ansi-c.patch')
-rw-r--r--debian/patches/0100-ansi-c.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/patches/0100-ansi-c.patch b/debian/patches/0100-ansi-c.patch
new file mode 100644
index 0000000..9a2345c
--- /dev/null
+++ b/debian/patches/0100-ansi-c.patch
@@ -0,0 +1,18 @@
+Author: Petter Reinholdtsen <pere@hungry.com>
+Description:
+ Make sure the code compiles when using -ansi. Renames non-ANSI C 'inline' to
+ '__inline'.
+
+Index: trunk/types.h
+===================================================================
+--- trunk.orig/types.h
++++ trunk/types.h
+@@ -31,7 +31,7 @@ typedef struct {
+ #endif
+
+ #if defined(ALIGNMENT_WORKAROUND) || defined(BIGENDIAN)
+-static inline u64 U64(u32 low, u32 high)
++static __inline u64 U64(u32 low, u32 high)
+ {
+ u64 self;
+