BUILD: compat: always set _POSIX_VERSION to ease comparisons
authorWilly Tarreau <w@1wt.eu>
Tue, 5 Aug 2025 13:59:11 +0000 (15:59 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 26 Aug 2025 06:43:59 +0000 (08:43 +0200)
commit319077ed41e46975cbcb3f9e2d3b8af5623d42ce
tree9437773f65ced3fdf24a161960b014a093549efb
parent2ae6edb59f8acf7fe0342c08e1d939c691004cf2
BUILD: compat: always set _POSIX_VERSION to ease comparisons

Sometimes we need to compare it to known versions, let's make sure it's
always defined. We set it to zero if undefined so that it cannot match
any comparison.

(cherry picked from commit e921fe894f6b992414e595be9450a9092f4df48e)
Signed-off-by: Amaury Denoyelle <adenoyelle@haproxy.com>
(cherry picked from commit a04c2d7ac5e4071da95230b128911d5b78bc996a)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
include/haproxy/compat.h