summaryrefslogtreecommitdiff
path: root/debian/patches/0100-ansi-c.patch
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2016-05-15 13:41:41 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2016-05-15 13:41:41 +0200
commitf2aaae610229ed38718553ea2d0e2b8d9d5cd07c (patch)
tree9a5558f4736c8c368fe7d6de3062fb12f2ff9d5b /debian/patches/0100-ansi-c.patch
parentfd84ce32ce3f4d636ce232e6692a18787d98c216 (diff)
Add recommended patches
Diffstat (limited to 'debian/patches/0100-ansi-c.patch')
-rw-r--r--debian/patches/0100-ansi-c.patch17
1 files changed, 17 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..fecd6bb
--- /dev/null
+++ b/debian/patches/0100-ansi-c.patch
@@ -0,0 +1,17 @@
+Author: Petter Reinholdtsen <pere@hungry.com>
+Description:
+ Make sure the code compiles when using -ansi. Renames non-ANSI C 'inline' to
+ '__inline'.
+
+diff -Naurp dmidecode.orig/types.h dmidecode/types.h
+--- dmidecode.orig/types.h 2011-09-27 17:09:22.211059414 +0200
++++ dmidecode/types.h 2011-09-27 17:21:35.362694344 +0200
+@@ -32,7 +32,7 @@ typedef struct {
+ #endif
+
+ #ifdef ALIGNMENT_WORKAROUND
+-static inline u64 U64(u32 low, u32 high)
++static __inline u64 U64(u32 low, u32 high)
+ {
+ u64 self;
+