]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: 51d: fix bool definition on dummy lib v4 master
authorWilliam Lallemand <wlallemand@irq6.net>
Tue, 28 Apr 2026 16:07:54 +0000 (18:07 +0200)
committerWilliam Lallemand <wlallemand@irq6.net>
Tue, 28 Apr 2026 16:12:35 +0000 (18:12 +0200)
Modern compiler breaks when defining bool, false and true.
Include <stdbool.h> instead.

$ make -j$(nproc) TARGET=linux-glibc USE_51DEGREES=1 \
   51DEGREES_VER=4 51DEGREES_SRC=addons/51degrees/dummy/v4hash/

addons/51degrees/dummy/v4hash/hash/hash.h

index 5d04d176621c5b842e2bbcee46d17cfdb681eae7..5b114d26c8573defa5ee75d9ca6627c65869ec5f 100644 (file)
@@ -40,8 +40,7 @@
 #include <stdlib.h>
 #include <inttypes.h>
 
-typedef int bool;
-enum { false, true };
+#include <stdbool.h>
 
 typedef unsigned char byte;