]> git.ipfire.org Git - thirdparty/haproxy.git/commit
IMPORT: ebtree: add a definition of offsetof()
authorWilly Tarreau <w@1wt.eu>
Sat, 13 Sep 2025 12:21:54 +0000 (14:21 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 17 Sep 2025 12:30:32 +0000 (14:30 +0200)
commita31da786859d8657641c5c115e8c74fcc34ec747
treeac1271fb937a24207ebb1356a7ebe3a6cecaeb31
parentddbff4e2358a89c67bd10ad3dd6cef88cf78f368
IMPORT: ebtree: add a definition of offsetof()

We'll use this to improve the definition of container_of(). Let's define
it if it does not exist. We can rely on __builtin_offsetof() on recent
enough compilers.

This is ebtree commit 1ea273e60832b98f552b9dbd013e6c2b32113aa5.
Signed-off-by: Willy Tarreau <w@1wt.eu>
This is ebtree commit 69b2ef57a8ce321e8de84486182012c954380401.
include/import/ebtree.h