summaryrefslogtreecommitdiff
path: root/debian/patches/0100-ansi-c.patch
blob: fecd6bbba0b016f4fc6ea51ba723ef9d16073e3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;