nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

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

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