nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

Blame SOURCES/0310-core-Fix-several-implicit-function-declarations.patch

b35c50
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
b35c50
From: Arjun Shankar <arjun@redhat.com>
b35c50
Date: Sun, 5 Feb 2023 11:13:55 +0100
b35c50
Subject: [PATCH] core: Fix several implicit function declarations
b35c50
b35c50
These #include lines ensure that grub2 continues to build with C99
b35c50
where implicit function declarations are removed.
b35c50
b35c50
Related to:
b35c50
b35c50
  <https://fedoraproject.org/wiki/Changes/PortingToModernC>
b35c50
  <https://fedoraproject.org/wiki/Toolchain/PortingToModernC>
b35c50
---
b35c50
 grub-core/commands/efi/connectefi.c | 1 +
b35c50
 grub-core/net/http.c                | 1 +
b35c50
 grub-core/term/at_keyboard.c        | 1 +
b35c50
 3 files changed, 3 insertions(+)
b35c50
b35c50
diff --git a/grub-core/commands/efi/connectefi.c b/grub-core/commands/efi/connectefi.c
b35c50
index 8ab75bd51b..3752ae17ed 100644
b35c50
--- a/grub-core/commands/efi/connectefi.c
b35c50
+++ b/grub-core/commands/efi/connectefi.c
b35c50
@@ -21,6 +21,7 @@
b35c50
 #include <grub/efi/api.h>
b35c50
 #include <grub/efi/pci.h>
b35c50
 #include <grub/efi/efi.h>
b35c50
+#include <grub/efi/disk.h>
b35c50
 #include <grub/command.h>
b35c50
 #include <grub/err.h>
b35c50
 #include <grub/i18n.h>
b35c50
diff --git a/grub-core/net/http.c b/grub-core/net/http.c
b35c50
index 57d2721719..5f956b743e 100644
b35c50
--- a/grub-core/net/http.c
b35c50
+++ b/grub-core/net/http.c
b35c50
@@ -26,6 +26,7 @@
b35c50
 #include <grub/dl.h>
b35c50
 #include <grub/file.h>
b35c50
 #include <grub/i18n.h>
b35c50
+#include <grub/env.h>
b35c50
 
b35c50
 GRUB_MOD_LICENSE ("GPLv3+");
b35c50
 
b35c50
diff --git a/grub-core/term/at_keyboard.c b/grub-core/term/at_keyboard.c
b35c50
index dac0f946fe..de3e4abe44 100644
b35c50
--- a/grub-core/term/at_keyboard.c
b35c50
+++ b/grub-core/term/at_keyboard.c
b35c50
@@ -25,6 +25,7 @@
b35c50
 #include <grub/time.h>
b35c50
 #include <grub/loader.h>
b35c50
 #include <grub/ps2.h>
b35c50
+#include <grub/env.h>
b35c50
 
b35c50
 GRUB_MOD_LICENSE ("GPLv3+");
b35c50