File: 01-ansi-c.patch

package info (click to toggle)
dmidecode 2.12-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 556 kB
  • ctags: 540
  • sloc: ansic: 5,321; makefile: 91
file content (17 lines) | stat: -rw-r--r-- 502 bytes parent folder | download | duplicates (5)
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;