Blame SOURCES/0011-dmidecode-Protect-dmidecode.h-against-double-inclusi.patch
|
|
dfabe0 |
From 0c6f1819b5421166f55369bb33f538bf64805ff6 Mon Sep 17 00:00:00 2001
|
|
|
dfabe0 |
From: Jean Delvare <jdelvare@suse.de>
|
|
|
dfabe0 |
Date: Wed, 1 Apr 2020 09:51:54 +0200
|
|
|
dfabe0 |
Subject: [PATCH 11/23] dmidecode: Protect dmidecode.h against double inclusion
|
|
|
dfabe0 |
|
|
|
dfabe0 |
We'll soon need to include dmidecode.h from another header file, so
|
|
|
dfabe0 |
protect it against double inclusion.
|
|
|
dfabe0 |
|
|
|
dfabe0 |
Signed-off-by: Jean Delvare <jdelvare@suse.de>
|
|
|
dfabe0 |
---
|
|
|
dfabe0 |
dmidecode.h | 5 +++++
|
|
|
dfabe0 |
1 file changed, 5 insertions(+)
|
|
|
dfabe0 |
|
|
|
dfabe0 |
diff --git a/dmidecode.h b/dmidecode.h
|
|
|
dfabe0 |
index 20e7e96efc0f..9ecc1791702d 100644
|
|
|
dfabe0 |
--- a/dmidecode.h
|
|
|
dfabe0 |
+++ b/dmidecode.h
|
|
|
dfabe0 |
@@ -18,6 +18,9 @@
|
|
|
dfabe0 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
dfabe0 |
*/
|
|
|
dfabe0 |
|
|
|
dfabe0 |
+#ifndef DMIDECODE_H
|
|
|
dfabe0 |
+#define DMIDECODE_H
|
|
|
dfabe0 |
+
|
|
|
dfabe0 |
#include "types.h"
|
|
|
dfabe0 |
|
|
|
dfabe0 |
struct dmi_header
|
|
|
dfabe0 |
@@ -30,3 +33,5 @@ struct dmi_header
|
|
|
dfabe0 |
|
|
|
dfabe0 |
int is_printable(const u8 *data, int len);
|
|
|
dfabe0 |
const char *dmi_string(const struct dmi_header *dm, u8 s);
|
|
|
dfabe0 |
+
|
|
|
dfabe0 |
+#endif
|
|
|
dfabe0 |
--
|
|
|
dfabe0 |
2.17.1
|
|
|
dfabe0 |
|