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

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

--- dmidecode.orig/dmidecode.h  2020-02-17 13:51:55.994592947 +0100
+++ dmidecode/dmidecode.h       2020-02-17 13:53:01.922421851 +0100
@@ -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

-- 
Jean Delvare
SUSE L3 Support

_______________________________________________
https://lists.nongnu.org/mailman/listinfo/dmidecode-devel

Reply via email to