From: Niko Tyni <ntyni@debian.org>
Date: Fri, 27 Jun 2025 17:58:05 +0300
Subject: Slightly reorder config_h.SH to match metaconfig output

Although this is originally a generated file, it was changed upstream
before changing the generator (metaconfig). The resulting orderings don't
quite match.
---
 config_h.SH | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/config_h.SH b/config_h.SH
index ffaab1f..6397232 100755
--- a/config_h.SH
+++ b/config_h.SH
@@ -142,12 +142,6 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
  */
 #$d_fcntl HAS_FCNTL		/**/
 
-/* HAS_FDOPENDIR:
- * This symbol, if defined, indicates that the fdopendir routine is
- * available to open a directory descriptor.
- */
-#$d_fdopendir HAS_FDOPENDIR		/**/
-
 /* HAS_FGETPOS:
  *	This symbol, if defined, indicates that the fgetpos routine is
  *	available to get the file position indicator, similar to ftell().
@@ -2526,6 +2520,13 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
  */
 #$d_fdim HAS_FDIM		/**/
 
+/* HAS_FDOPENDIR:
+ *	This symbol, if defined, indicates that the fdopendir() routine is
+ *	available to open directories using an opened file descriptor already
+ *	referring to that directory.
+ */
+#$d_fdopendir HAS_FDOPENDIR		/**/
+
 /* HAS_FEGETROUND:
  *	This symbol, if defined, indicates that the fegetround routine is
  *	available to return the macro corresponding to the current rounding
