-
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy path0310-core-Fix-several-implicit-function-declarations.patch
More file actions
42 lines (34 loc) · 1.22 KB
/
0310-core-Fix-several-implicit-function-declarations.patch
File metadata and controls
42 lines (34 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Arjun Shankar <arjun@redhat.com>
Date: Sun, 5 Feb 2023 11:13:55 +0100
Subject: [PATCH] core: Fix several implicit function declarations
These #include lines ensure that grub2 continues to build with C99
where implicit function declarations are removed.
Related to:
<https://fedoraproject.org/wiki/Changes/PortingToModernC>
<https://fedoraproject.org/wiki/Toolchain/PortingToModernC>
---
grub-core/commands/efi/connectefi.c | 1 +
grub-core/net/http.c | 1 +
grub-core/term/at_keyboard.c | 1 +
3 files changed, 3 insertions(+)
diff --git a/grub-core/net/http.c b/grub-core/net/http.c
index 57d2721719..5f956b743e 100644
--- a/grub-core/net/http.c
+++ b/grub-core/net/http.c
@@ -26,6 +26,7 @@
#include <grub/dl.h>
#include <grub/file.h>
#include <grub/i18n.h>
+#include <grub/env.h>
GRUB_MOD_LICENSE ("GPLv3+");
diff --git a/grub-core/term/at_keyboard.c b/grub-core/term/at_keyboard.c
index dac0f946fe..de3e4abe44 100644
--- a/grub-core/term/at_keyboard.c
+++ b/grub-core/term/at_keyboard.c
@@ -25,6 +25,7 @@
#include <grub/time.h>
#include <grub/loader.h>
#include <grub/ps2.h>
+#include <grub/env.h>
GRUB_MOD_LICENSE ("GPLv3+");