Blame SOURCES/0011-dmidecode-Protect-dmidecode.h-against-double-inclusi.patch

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