diff options
Diffstat (limited to 'debian/patches/01-ansi-c.patch')
-rw-r--r-- | debian/patches/01-ansi-c.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/patches/01-ansi-c.patch b/debian/patches/01-ansi-c.patch new file mode 100644 index 0000000..fecd6bb --- /dev/null +++ b/debian/patches/01-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; + |