]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix implicit headers when using isc/overflow.h header
authorOndřej Surý <ondrej@isc.org>
Wed, 25 Jun 2025 06:25:41 +0000 (08:25 +0200)
committerOndřej Surý <ondrej@isc.org>
Mon, 30 Jun 2025 11:22:38 +0000 (13:22 +0200)
In jemalloc_shim.h, we relied on including <isc/overflow.h> implicitly
instead of explicitly and same was happening inside isc/overflow.h - the
stdbool.h (for bool type) was being included implicitly instead of
explicitly.

lib/isc/include/isc/overflow.h
lib/isc/jemalloc_shim.h

index c272cfa8793cd037b24bff57816cc611ccae721e..62727513ad25f7e900919c06214f92c0b4967b81 100644 (file)
@@ -13,6 +13,8 @@
 
 #pragma once
 
+#include <stdbool.h>
+
 #include <isc/util.h>
 
 /*
index 1f6ef0fc44d3ed507eb74b1940f7a6d48ffe5891..a29d7c0ecdc11952bbd71a828d4e707b68fd5846 100644 (file)
 #if !defined(HAVE_JEMALLOC)
 
 #include <stddef.h>
+#include <stdlib.h>
 #include <string.h>
 
+#include <isc/overflow.h>
 #include <isc/util.h>
 
 const char *malloc_conf = NULL;
@@ -26,8 +28,6 @@ const char *malloc_conf = NULL;
 #define MALLOCX_TCACHE_NONE (0)
 #define MALLOCX_ARENA(a)    (0)
 
-#include <stdlib.h>
-
 typedef union {
        size_t size;
        max_align_t __alignment;