]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Define IOV_MAX if not already defined
authorMattias Ellert <mattias.ellert@physics.uu.se>
Mon, 3 Aug 2026 03:23:11 +0000 (13:23 +1000)
committerMark Andrews <marka@isc.org>
Tue, 4 Aug 2026 01:36:39 +0000 (11:36 +1000)
Needed for GNU/Hurd

lib/isccfg/check.c

index 743c97f2f598dffaf3c370ca9ec3b8c4ca68150f..3c7af5e2c8ee47ad491de13e49b25c9173116ce8 100644 (file)
@@ -1247,6 +1247,14 @@ check_options(const cfg_obj_t *options, const cfg_obj_t *config,
                                                "dns64-server", "dns64-contact",
                                                NULL };
 
+#ifndef IOV_MAX
+/*
+ * FSTRM_IOTHR_INPUT_QUEUE_SIZE_MAX is defined as IOV_MAX, but IOV_MAX can be
+ * undefined.
+ */
+#define IOV_MAX 1024
+#endif /* ifndef IOV_MAX */
+
 #ifdef HAVE_DNSTAP
        static fstrmtable fstrm[] = {
                { "fstrm-set-buffer-hint", FSTRM_IOTHR_BUFFER_HINT_MIN,