[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/5] grub/verify.h: add include guard
From: |
Leif Lindholm |
Subject: |
[PATCH 1/5] grub/verify.h: add include guard |
Date: |
Wed, 14 Nov 2018 19:29:15 +0000 |
verify.h was added without include guards. This means compiling anything
including both grub/verify.h and grub/lib/cmdline.h fails (at least
loader/arm64/linux.c.
Add the necessary include guard.
Signed-off-by: Leif Lindholm <address@hidden>
---
include/grub/verify.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/include/grub/verify.h b/include/grub/verify.h
index 79022b422..dedb14a1d 100644
--- a/include/grub/verify.h
+++ b/include/grub/verify.h
@@ -16,6 +16,9 @@
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
*/
+#ifndef GRUB_VERIFY_HEADER
+#define GRUB_VERIFY_HEADER
+
#include <grub/file.h>
#include <grub/list.h>
@@ -76,3 +79,5 @@ grub_verifier_unregister (struct grub_file_verifier *ver)
grub_err_t
grub_verify_string (char *str, enum grub_verify_string_type type);
+
+#endif /* ! GRUB_VERIFY_HEADER */
--
2.11.0
- [PATCH 0/5] Fix non-x86 builds after verifiers framework merged, Leif Lindholm, 2018/11/14
- [PATCH 2/5] file.h: add device tree file type, Leif Lindholm, 2018/11/14
- [PATCH 1/5] grub/verify.h: add include guard,
Leif Lindholm <=
- [PATCH 5/5] arm-uboot, ia64, sparc64: fix up grub_file_open calls, Leif Lindholm, 2018/11/14
- [PATCH 3/5] loader/efi/fdt.c: fixup grub_file_open call, Leif Lindholm, 2018/11/14
- [PATCH 4/5] arm64/efi: fix breakage caused by verifiers, Leif Lindholm, 2018/11/14
- Re: [PATCH 0/5] Fix non-x86 builds after verifiers framework merged, Fu Wei Fu, 2018/11/15