|
|
b35c50 |
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
b35c50 |
From: Robbie Harwood <rharwood@redhat.com>
|
|
|
b35c50 |
Date: Tue, 22 Feb 2022 16:57:54 -0500
|
|
|
b35c50 |
Subject: [PATCH] Where present, ensure config-util.h precedes config.h
|
|
|
b35c50 |
|
|
|
b35c50 |
gnulib defines go in config-util.h, and we need to know whether to
|
|
|
b35c50 |
provide duplicates in config.h or not.
|
|
|
b35c50 |
|
|
|
b35c50 |
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
|
|
|
b35c50 |
(cherry picked from commit 46e82b28e1a75703d0424c7e13d009171310c6cd)
|
|
|
b35c50 |
[rharwood: gensymlist isn't part of tarballs]
|
|
|
b35c50 |
---
|
|
|
b35c50 |
grub-core/disk/host.c | 2 +-
|
|
|
b35c50 |
grub-core/kern/emu/argp_common.c | 2 +-
|
|
|
b35c50 |
grub-core/kern/emu/main.c | 2 +-
|
|
|
b35c50 |
grub-core/osdep/aros/config.c | 2 +-
|
|
|
b35c50 |
grub-core/osdep/basic/emunet.c | 2 +-
|
|
|
b35c50 |
grub-core/osdep/basic/init.c | 2 +-
|
|
|
b35c50 |
grub-core/osdep/haiku/getroot.c | 2 +-
|
|
|
b35c50 |
grub-core/osdep/linux/emunet.c | 2 +-
|
|
|
b35c50 |
grub-core/osdep/unix/config.c | 2 +-
|
|
|
b35c50 |
grub-core/osdep/unix/cputime.c | 2 +-
|
|
|
b35c50 |
grub-core/osdep/unix/dl.c | 2 +-
|
|
|
b35c50 |
grub-core/osdep/unix/emuconsole.c | 2 +-
|
|
|
b35c50 |
grub-core/osdep/unix/getroot.c | 2 +-
|
|
|
b35c50 |
grub-core/osdep/windows/config.c | 2 +-
|
|
|
b35c50 |
grub-core/osdep/windows/cputime.c | 2 +-
|
|
|
b35c50 |
grub-core/osdep/windows/dl.c | 2 +-
|
|
|
b35c50 |
grub-core/osdep/windows/emuconsole.c | 2 +-
|
|
|
b35c50 |
grub-core/osdep/windows/init.c | 2 +-
|
|
|
b35c50 |
18 files changed, 18 insertions(+), 18 deletions(-)
|
|
|
b35c50 |
|
|
|
b35c50 |
diff --git a/grub-core/disk/host.c b/grub-core/disk/host.c
|
|
|
b35c50 |
index c151d225df..f34529f86a 100644
|
|
|
b35c50 |
--- a/grub-core/disk/host.c
|
|
|
b35c50 |
+++ b/grub-core/disk/host.c
|
|
|
b35c50 |
@@ -20,8 +20,8 @@
|
|
|
b35c50 |
/* When using the disk, make a reference to this module. Otherwise
|
|
|
b35c50 |
the user will end up with a useless module :-). */
|
|
|
b35c50 |
|
|
|
b35c50 |
-#include <config.h>
|
|
|
b35c50 |
#include <config-util.h>
|
|
|
b35c50 |
+#include <config.h>
|
|
|
b35c50 |
|
|
|
b35c50 |
#include <grub/dl.h>
|
|
|
b35c50 |
#include <grub/disk.h>
|
|
|
b35c50 |
diff --git a/grub-core/kern/emu/argp_common.c b/grub-core/kern/emu/argp_common.c
|
|
|
b35c50 |
index 1668858703..8cb4608c3d 100644
|
|
|
b35c50 |
--- a/grub-core/kern/emu/argp_common.c
|
|
|
b35c50 |
+++ b/grub-core/kern/emu/argp_common.c
|
|
|
b35c50 |
@@ -17,8 +17,8 @@
|
|
|
b35c50 |
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
|
|
|
b35c50 |
*/
|
|
|
b35c50 |
|
|
|
b35c50 |
-#include <config.h>
|
|
|
b35c50 |
#include <config-util.h>
|
|
|
b35c50 |
+#include <config.h>
|
|
|
b35c50 |
|
|
|
b35c50 |
#pragma GCC diagnostic ignored "-Wmissing-prototypes"
|
|
|
b35c50 |
#pragma GCC diagnostic ignored "-Wmissing-declarations"
|
|
|
b35c50 |
diff --git a/grub-core/kern/emu/main.c b/grub-core/kern/emu/main.c
|
|
|
b35c50 |
index 55ea5a11cc..12277c34d2 100644
|
|
|
b35c50 |
--- a/grub-core/kern/emu/main.c
|
|
|
b35c50 |
+++ b/grub-core/kern/emu/main.c
|
|
|
b35c50 |
@@ -16,8 +16,8 @@
|
|
|
b35c50 |
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
|
|
|
b35c50 |
*/
|
|
|
b35c50 |
|
|
|
b35c50 |
-#include <config.h>
|
|
|
b35c50 |
#include <config-util.h>
|
|
|
b35c50 |
+#include <config.h>
|
|
|
b35c50 |
|
|
|
b35c50 |
#include <time.h>
|
|
|
b35c50 |
#include <stdio.h>
|
|
|
b35c50 |
diff --git a/grub-core/osdep/aros/config.c b/grub-core/osdep/aros/config.c
|
|
|
b35c50 |
index c82d0ea8e7..55f5728efc 100644
|
|
|
b35c50 |
--- a/grub-core/osdep/aros/config.c
|
|
|
b35c50 |
+++ b/grub-core/osdep/aros/config.c
|
|
|
b35c50 |
@@ -16,8 +16,8 @@
|
|
|
b35c50 |
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
|
|
|
b35c50 |
*/
|
|
|
b35c50 |
|
|
|
b35c50 |
-#include <config.h>
|
|
|
b35c50 |
#include <config-util.h>
|
|
|
b35c50 |
+#include <config.h>
|
|
|
b35c50 |
|
|
|
b35c50 |
#include <grub/emu/hostdisk.h>
|
|
|
b35c50 |
#include <grub/emu/exec.h>
|
|
|
b35c50 |
diff --git a/grub-core/osdep/basic/emunet.c b/grub-core/osdep/basic/emunet.c
|
|
|
b35c50 |
index 6362e5cfbb..dbfd316d61 100644
|
|
|
b35c50 |
--- a/grub-core/osdep/basic/emunet.c
|
|
|
b35c50 |
+++ b/grub-core/osdep/basic/emunet.c
|
|
|
b35c50 |
@@ -16,8 +16,8 @@
|
|
|
b35c50 |
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
|
|
|
b35c50 |
*/
|
|
|
b35c50 |
|
|
|
b35c50 |
-#include <config.h>
|
|
|
b35c50 |
#include <config-util.h>
|
|
|
b35c50 |
+#include <config.h>
|
|
|
b35c50 |
|
|
|
b35c50 |
#include <grub/i18n.h>
|
|
|
b35c50 |
#include <grub/emu/net.h>
|
|
|
b35c50 |
diff --git a/grub-core/osdep/basic/init.c b/grub-core/osdep/basic/init.c
|
|
|
b35c50 |
index c54c710dbc..b104c7e162 100644
|
|
|
b35c50 |
--- a/grub-core/osdep/basic/init.c
|
|
|
b35c50 |
+++ b/grub-core/osdep/basic/init.c
|
|
|
b35c50 |
@@ -16,8 +16,8 @@
|
|
|
b35c50 |
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
|
|
|
b35c50 |
*/
|
|
|
b35c50 |
|
|
|
b35c50 |
-#include <config.h>
|
|
|
b35c50 |
#include <config-util.h>
|
|
|
b35c50 |
+#include <config.h>
|
|
|
b35c50 |
|
|
|
b35c50 |
#include <grub/util/misc.h>
|
|
|
b35c50 |
#include <grub/i18n.h>
|
|
|
b35c50 |
diff --git a/grub-core/osdep/haiku/getroot.c b/grub-core/osdep/haiku/getroot.c
|
|
|
b35c50 |
index 4e123c0903..927a1ebc94 100644
|
|
|
b35c50 |
--- a/grub-core/osdep/haiku/getroot.c
|
|
|
b35c50 |
+++ b/grub-core/osdep/haiku/getroot.c
|
|
|
b35c50 |
@@ -1,5 +1,5 @@
|
|
|
b35c50 |
-#include <config.h>
|
|
|
b35c50 |
#include <config-util.h>
|
|
|
b35c50 |
+#include <config.h>
|
|
|
b35c50 |
#include <sys/types.h>
|
|
|
b35c50 |
#include <sys/stat.h>
|
|
|
b35c50 |
#include <string.h>
|
|
|
b35c50 |
diff --git a/grub-core/osdep/linux/emunet.c b/grub-core/osdep/linux/emunet.c
|
|
|
b35c50 |
index 19b188f09e..d5a6417355 100644
|
|
|
b35c50 |
--- a/grub-core/osdep/linux/emunet.c
|
|
|
b35c50 |
+++ b/grub-core/osdep/linux/emunet.c
|
|
|
b35c50 |
@@ -16,8 +16,8 @@
|
|
|
b35c50 |
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
|
|
|
b35c50 |
*/
|
|
|
b35c50 |
|
|
|
b35c50 |
-#include <config.h>
|
|
|
b35c50 |
#include <config-util.h>
|
|
|
b35c50 |
+#include <config.h>
|
|
|
b35c50 |
|
|
|
b35c50 |
#include <sys/socket.h>
|
|
|
b35c50 |
#include <sys/types.h>
|
|
|
b35c50 |
diff --git a/grub-core/osdep/unix/config.c b/grub-core/osdep/unix/config.c
|
|
|
b35c50 |
index 46a881530c..0ce0e309ac 100644
|
|
|
b35c50 |
--- a/grub-core/osdep/unix/config.c
|
|
|
b35c50 |
+++ b/grub-core/osdep/unix/config.c
|
|
|
b35c50 |
@@ -16,8 +16,8 @@
|
|
|
b35c50 |
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
|
|
|
b35c50 |
*/
|
|
|
b35c50 |
|
|
|
b35c50 |
-#include <config.h>
|
|
|
b35c50 |
#include <config-util.h>
|
|
|
b35c50 |
+#include <config.h>
|
|
|
b35c50 |
|
|
|
b35c50 |
#include <grub/emu/hostdisk.h>
|
|
|
b35c50 |
#include <grub/emu/exec.h>
|
|
|
b35c50 |
diff --git a/grub-core/osdep/unix/cputime.c b/grub-core/osdep/unix/cputime.c
|
|
|
b35c50 |
index cff359a3b9..fb6ff55a1a 100644
|
|
|
b35c50 |
--- a/grub-core/osdep/unix/cputime.c
|
|
|
b35c50 |
+++ b/grub-core/osdep/unix/cputime.c
|
|
|
b35c50 |
@@ -1,5 +1,5 @@
|
|
|
b35c50 |
-#include <config.h>
|
|
|
b35c50 |
#include <config-util.h>
|
|
|
b35c50 |
+#include <config.h>
|
|
|
b35c50 |
|
|
|
b35c50 |
#include <sys/times.h>
|
|
|
b35c50 |
#include <unistd.h>
|
|
|
b35c50 |
diff --git a/grub-core/osdep/unix/dl.c b/grub-core/osdep/unix/dl.c
|
|
|
b35c50 |
index 562b101a28..99b189bc1c 100644
|
|
|
b35c50 |
--- a/grub-core/osdep/unix/dl.c
|
|
|
b35c50 |
+++ b/grub-core/osdep/unix/dl.c
|
|
|
b35c50 |
@@ -16,8 +16,8 @@
|
|
|
b35c50 |
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
|
|
|
b35c50 |
*/
|
|
|
b35c50 |
|
|
|
b35c50 |
-#include <config.h>
|
|
|
b35c50 |
#include <config-util.h>
|
|
|
b35c50 |
+#include <config.h>
|
|
|
b35c50 |
|
|
|
b35c50 |
#include <grub/dl.h>
|
|
|
b35c50 |
#include <grub/misc.h>
|
|
|
b35c50 |
diff --git a/grub-core/osdep/unix/emuconsole.c b/grub-core/osdep/unix/emuconsole.c
|
|
|
b35c50 |
index 7308798efe..cac159424d 100644
|
|
|
b35c50 |
--- a/grub-core/osdep/unix/emuconsole.c
|
|
|
b35c50 |
+++ b/grub-core/osdep/unix/emuconsole.c
|
|
|
b35c50 |
@@ -17,8 +17,8 @@
|
|
|
b35c50 |
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
|
|
|
b35c50 |
*/
|
|
|
b35c50 |
|
|
|
b35c50 |
-#include <config.h>
|
|
|
b35c50 |
#include <config-util.h>
|
|
|
b35c50 |
+#include <config.h>
|
|
|
b35c50 |
|
|
|
b35c50 |
#include <grub/term.h>
|
|
|
b35c50 |
#include <grub/types.h>
|
|
|
b35c50 |
diff --git a/grub-core/osdep/unix/getroot.c b/grub-core/osdep/unix/getroot.c
|
|
|
b35c50 |
index 46d7116c6e..4f436284ce 100644
|
|
|
b35c50 |
--- a/grub-core/osdep/unix/getroot.c
|
|
|
b35c50 |
+++ b/grub-core/osdep/unix/getroot.c
|
|
|
b35c50 |
@@ -16,8 +16,8 @@
|
|
|
b35c50 |
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
|
|
|
b35c50 |
*/
|
|
|
b35c50 |
|
|
|
b35c50 |
-#include <config-util.h>
|
|
|
b35c50 |
#include <config.h>
|
|
|
b35c50 |
+#include <config-util.h>
|
|
|
b35c50 |
|
|
|
b35c50 |
#include <sys/stat.h>
|
|
|
b35c50 |
#include <sys/types.h>
|
|
|
b35c50 |
diff --git a/grub-core/osdep/windows/config.c b/grub-core/osdep/windows/config.c
|
|
|
b35c50 |
index 928ab1a49b..2bb8a2fd88 100644
|
|
|
b35c50 |
--- a/grub-core/osdep/windows/config.c
|
|
|
b35c50 |
+++ b/grub-core/osdep/windows/config.c
|
|
|
b35c50 |
@@ -16,8 +16,8 @@
|
|
|
b35c50 |
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
|
|
|
b35c50 |
*/
|
|
|
b35c50 |
|
|
|
b35c50 |
-#include <config.h>
|
|
|
b35c50 |
#include <config-util.h>
|
|
|
b35c50 |
+#include <config.h>
|
|
|
b35c50 |
|
|
|
b35c50 |
#include <grub/emu/hostfile.h>
|
|
|
b35c50 |
#include <grub/emu/config.h>
|
|
|
b35c50 |
diff --git a/grub-core/osdep/windows/cputime.c b/grub-core/osdep/windows/cputime.c
|
|
|
b35c50 |
index 3568aa2d35..5d06d79dd5 100644
|
|
|
b35c50 |
--- a/grub-core/osdep/windows/cputime.c
|
|
|
b35c50 |
+++ b/grub-core/osdep/windows/cputime.c
|
|
|
b35c50 |
@@ -1,5 +1,5 @@
|
|
|
b35c50 |
-#include <config.h>
|
|
|
b35c50 |
#include <config-util.h>
|
|
|
b35c50 |
+#include <config.h>
|
|
|
b35c50 |
|
|
|
b35c50 |
#include <grub/emu/misc.h>
|
|
|
b35c50 |
#include <windows.h>
|
|
|
b35c50 |
diff --git a/grub-core/osdep/windows/dl.c b/grub-core/osdep/windows/dl.c
|
|
|
b35c50 |
index eec6a24ad7..8eab7057e4 100644
|
|
|
b35c50 |
--- a/grub-core/osdep/windows/dl.c
|
|
|
b35c50 |
+++ b/grub-core/osdep/windows/dl.c
|
|
|
b35c50 |
@@ -16,8 +16,8 @@
|
|
|
b35c50 |
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
|
|
|
b35c50 |
*/
|
|
|
b35c50 |
|
|
|
b35c50 |
-#include <config.h>
|
|
|
b35c50 |
#include <config-util.h>
|
|
|
b35c50 |
+#include <config.h>
|
|
|
b35c50 |
|
|
|
b35c50 |
#include <grub/dl.h>
|
|
|
b35c50 |
#include <grub/misc.h>
|
|
|
b35c50 |
diff --git a/grub-core/osdep/windows/emuconsole.c b/grub-core/osdep/windows/emuconsole.c
|
|
|
b35c50 |
index 4fb3693cc0..17a44de469 100644
|
|
|
b35c50 |
--- a/grub-core/osdep/windows/emuconsole.c
|
|
|
b35c50 |
+++ b/grub-core/osdep/windows/emuconsole.c
|
|
|
b35c50 |
@@ -16,8 +16,8 @@
|
|
|
b35c50 |
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
|
|
|
b35c50 |
*/
|
|
|
b35c50 |
|
|
|
b35c50 |
-#include <config.h>
|
|
|
b35c50 |
#include <config-util.h>
|
|
|
b35c50 |
+#include <config.h>
|
|
|
b35c50 |
|
|
|
b35c50 |
#include <grub/term.h>
|
|
|
b35c50 |
#include <grub/misc.h>
|
|
|
b35c50 |
diff --git a/grub-core/osdep/windows/init.c b/grub-core/osdep/windows/init.c
|
|
|
b35c50 |
index 6297de6326..51a9647dde 100644
|
|
|
b35c50 |
--- a/grub-core/osdep/windows/init.c
|
|
|
b35c50 |
+++ b/grub-core/osdep/windows/init.c
|
|
|
b35c50 |
@@ -16,8 +16,8 @@
|
|
|
b35c50 |
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
|
|
|
b35c50 |
*/
|
|
|
b35c50 |
|
|
|
b35c50 |
-#include <config.h>
|
|
|
b35c50 |
#include <config-util.h>
|
|
|
b35c50 |
+#include <config.h>
|
|
|
b35c50 |
#include <grub/util/misc.h>
|
|
|
b35c50 |
#include <grub/osdep/hostfile.h>
|
|
|
b35c50 |
#include <grub/util/windows.h>
|