]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
config: Where present, ensure config-util.h precedes config.h
authorRobbie Harwood <rharwood@redhat.com>
Tue, 15 Mar 2022 18:05:39 +0000 (14:05 -0400)
committerDaniel Kiper <daniel.kiper@oracle.com>
Mon, 21 Mar 2022 17:47:16 +0000 (18:47 +0100)
gnulib defines go in config-util.h, and we need to know whether to
provide duplicates in config.h or not.

Signed-off-by: Robbie Harwood <rharwood@redhat.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
19 files changed:
grub-core/disk/host.c
grub-core/gensymlist.sh
grub-core/kern/emu/argp_common.c
grub-core/kern/emu/main.c
grub-core/osdep/aros/config.c
grub-core/osdep/basic/emunet.c
grub-core/osdep/basic/init.c
grub-core/osdep/haiku/getroot.c
grub-core/osdep/linux/emunet.c
grub-core/osdep/unix/config.c
grub-core/osdep/unix/cputime.c
grub-core/osdep/unix/dl.c
grub-core/osdep/unix/emuconsole.c
grub-core/osdep/unix/getroot.c
grub-core/osdep/windows/config.c
grub-core/osdep/windows/cputime.c
grub-core/osdep/windows/dl.c
grub-core/osdep/windows/emuconsole.c
grub-core/osdep/windows/init.c

index c151d225df723a23b5090fe2080e4cffb013dea4..f34529f86ae8826dc59d1d621d354eb5b2a14314 100644 (file)
@@ -20,8 +20,8 @@
 /* When using the disk, make a reference to this module.  Otherwise
    the user will end up with a useless module :-).  */
 
-#include <config.h>
 #include <config-util.h>
+#include <config.h>
 
 #include <grub/dl.h>
 #include <grub/disk.h>
index 5beaabdd610857a84b71ba59872853c67a48e9cc..5074ef6aad58b46227b13b33f5f5c7bdb72fbb0a 100644 (file)
@@ -31,6 +31,7 @@ cat <<EOF
  *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <../config-util.h>
 EOF
 
 for i in $*; do
index 16688587037f67bc39f5e04f1bd6d4112dce7792..8cb4608c3df57e2dc37270c93961183ee3740a59 100644 (file)
@@ -17,8 +17,8 @@
  *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <config.h>
 #include <config-util.h>
+#include <config.h>
 
 #pragma GCC diagnostic ignored "-Wmissing-prototypes"
 #pragma GCC diagnostic ignored "-Wmissing-declarations"
index c01bfe093bee2b2b681c10c38938e06eb341b6df..44e087e988e1a7b7accf4272b4d252f65ae78b6e 100644 (file)
@@ -16,8 +16,8 @@
  *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <config.h>
 #include <config-util.h>
+#include <config.h>
 
 #include <time.h>
 #include <stdio.h>
index c82d0ea8e764bd68b93a567ef6a5dd5cfbc0cefe..55f5728efca6381b7214a520abd6c010e410bbc9 100644 (file)
@@ -16,8 +16,8 @@
  *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <config.h>
 #include <config-util.h>
+#include <config.h>
 
 #include <grub/emu/hostdisk.h>
 #include <grub/emu/exec.h>
index 6362e5cfbb3e6c47d372c94669183481b5daf066..dbfd316d61388ecdbd1cb0b0bb77c1743dd642db 100644 (file)
@@ -16,8 +16,8 @@
  *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <config.h>
 #include <config-util.h>
+#include <config.h>
 
 #include <grub/i18n.h>
 #include <grub/emu/net.h>
index c54c710dbcb188fee09c37aaf6648786c833b8e2..b104c7e162b07656af766fa7f80decd41fc1d8bc 100644 (file)
@@ -16,8 +16,8 @@
  *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <config.h>
 #include <config-util.h>
+#include <config.h>
 
 #include <grub/util/misc.h>
 #include <grub/i18n.h>
index 85ca2f5b938ff7e1bc4a84fffc4d9e0c039a9c7e..2539a58c261c0d3f469ac223c9650072fa0cde8c 100644 (file)
@@ -1,5 +1,5 @@
-#include <config.h>
 #include <config-util.h>
+#include <config.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <string.h>
index 19b188f09eebae82671b71b29d993a55b64b9164..d5a6417355ff5cde86bcc98f9b3f17d0d326db35 100644 (file)
@@ -16,8 +16,8 @@
  *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <config.h>
 #include <config-util.h>
+#include <config.h>
 
 #include <sys/socket.h>
 #include <sys/types.h>
index 7d6325138cecbfb12505cb1916370375aad95e7a..0b1f7618d2100a74f9eccfe8dd739f788492570f 100644 (file)
@@ -16,8 +16,8 @@
  *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <config.h>
 #include <config-util.h>
+#include <config.h>
 
 #include <grub/emu/hostdisk.h>
 #include <grub/emu/exec.h>
index 7a8cbfd6bd3207b322f42c680527eba1369d1bbb..d43e625f27bcae359d5647a67e85e49abfeaf91a 100644 (file)
@@ -1,5 +1,5 @@
-#include <config.h>
 #include <config-util.h>
+#include <config.h>
 
 #include <sys/times.h>
 #include <unistd.h>
index 562b101a280521f6bda0aa3280faa33312170010..99b189bc1c9767b435de8efb61080acc8fb7ce6f 100644 (file)
@@ -16,8 +16,8 @@
  *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <config.h>
 #include <config-util.h>
+#include <config.h>
 
 #include <grub/dl.h>
 #include <grub/misc.h>
index 7308798efe901deaaed18c3661ad7ced6acc026f..cac159424d86f3fae8fd464787f1ada1aa4c954a 100644 (file)
@@ -17,8 +17,8 @@
  *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <config.h>
 #include <config-util.h>
+#include <config.h>
 
 #include <grub/term.h>
 #include <grub/types.h>
index f70c499bb0d565a5b5a2a4c046ac571d105d226e..7d2a29f318edb71103160cb1e348de71f388f21d 100644 (file)
@@ -16,8 +16,8 @@
  *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <config-util.h>
 #include <config.h>
+#include <config-util.h>
 
 #include <sys/stat.h>
 #include <sys/types.h>
index 928ab1a49be2b81344e16bb45c7f4d8762c9a77b..2bb8a2fd88eb29ba64c93556bc6e7e041c2621d7 100644 (file)
@@ -16,8 +16,8 @@
  *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <config.h>
 #include <config-util.h>
+#include <config.h>
 
 #include <grub/emu/hostfile.h>
 #include <grub/emu/config.h>
index 3568aa2d359307277e2a6397c37f83f55b48ee89..5d06d79dd5307ba70755918906f47e04cec19fe0 100644 (file)
@@ -1,5 +1,5 @@
-#include <config.h>
 #include <config-util.h>
+#include <config.h>
 
 #include <grub/emu/misc.h>
 #include <windows.h>
index eec6a24ad7f721258320a02f46c632d9e00adc68..8eab7057e4dbd654ed563564b390246273d8d47a 100644 (file)
@@ -16,8 +16,8 @@
  *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <config.h>
 #include <config-util.h>
+#include <config.h>
 
 #include <grub/dl.h>
 #include <grub/misc.h>
index 4fb3693cc01da0374c59db03941f6f447240a9d5..17a44de4690479ce0cb49294d376291fe06f2a85 100644 (file)
@@ -16,8 +16,8 @@
  *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <config.h>
 #include <config-util.h>
+#include <config.h>
 
 #include <grub/term.h>
 #include <grub/misc.h>
index 155a3e514633570bcdccac80c763f4e8946e6f91..b67c73c59644f1874164feaed19c310b74bcca86 100644 (file)
@@ -16,8 +16,8 @@
  *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <config.h>
 #include <config-util.h>
+#include <config.h>
 #include <grub/util/misc.h>
 #include <grub/osdep/hostfile.h>
 #include <grub/util/windows.h>