Blame SOURCES/0371-include-grub-verify.h-Add-include-guard.patch

3efed6
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
3efed6
From: Leif Lindholm <leif.lindholm@linaro.org>
3efed6
Date: Wed, 14 Nov 2018 19:29:15 +0000
3efed6
Subject: [PATCH] include/grub/verify.h: Add include guard
3efed6
3efed6
verify.h was added without include guards. This means compiling anything
3efed6
including both include/grub/verify.h and include/grub/lib/cmdline.h fails
3efed6
(at least grub-core/loader/arm64/linux.c.
3efed6
3efed6
Add the necessary include guard.
3efed6
3efed6
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
3efed6
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
3efed6
---
3efed6
 include/grub/verify.h | 5 +++++
3efed6
 1 file changed, 5 insertions(+)
3efed6
3efed6
diff --git a/include/grub/verify.h b/include/grub/verify.h
b71686
index 60c13e7ea..ace72d746 100644
3efed6
--- a/include/grub/verify.h
3efed6
+++ b/include/grub/verify.h
3efed6
@@ -16,6 +16,9 @@
3efed6
  *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
3efed6
  */
3efed6
 
3efed6
+#ifndef GRUB_VERIFY_HEADER
3efed6
+#define GRUB_VERIFY_HEADER 1
3efed6
+
3efed6
 #include <grub/file.h>
3efed6
 #include <grub/list.h>
3efed6
 
3efed6
@@ -89,3 +92,5 @@ char grub_is_dangerous_module (grub_file_t io);
3efed6
  * Returns the name if one is loaded, otherwise NULL.
3efed6
  */
3efed6
 const char *grub_dangerous_module_loaded (void);
3efed6
+
3efed6
+#endif /* ! GRUB_VERIFY_HEADER */