summaryrefslogtreecommitdiffstats
path: root/debian/patches/0100-ansi-c.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:21:36 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:21:36 +0000
commitbeeaba90c96877f915e8fd9e460518e01a426f2a (patch)
tree562e5ff7ed2412b9d9d1da55d00ad41b74c2914f /debian/patches/0100-ansi-c.patch
parentAdding upstream version 3.4. (diff)
downloaddmidecode-beeaba90c96877f915e8fd9e460518e01a426f2a.tar.xz
dmidecode-beeaba90c96877f915e8fd9e460518e01a426f2a.zip
Adding debian version 3.4-1.debian/3.4-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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;
+