dcavalca / rpms / grub2

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