Blob Blame History Raw
From 0c6f1819b5421166f55369bb33f538bf64805ff6 Mon Sep 17 00:00:00 2001
From: Jean Delvare <jdelvare@suse.de>
Date: Wed, 1 Apr 2020 09:51:54 +0200
Subject: [PATCH 11/23] dmidecode: Protect dmidecode.h against double inclusion

We'll soon need to include dmidecode.h from another header file, so
protect it against double inclusion.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
---
 dmidecode.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dmidecode.h b/dmidecode.h
index 20e7e96efc0f..9ecc1791702d 100644
--- a/dmidecode.h
+++ b/dmidecode.h
@@ -18,6 +18,9 @@
  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
  */
 
+#ifndef DMIDECODE_H
+#define DMIDECODE_H
+
 #include "types.h"
 
 struct dmi_header
@@ -30,3 +33,5 @@ struct dmi_header
 
 int is_printable(const u8 *data, int len);
 const char *dmi_string(const struct dmi_header *dm, u8 s);
+
+#endif
-- 
2.17.1