From 0344ea0a83c7e46a3192397dca510087741c0f55 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 7 Jun 2024 15:57:09 +0200 Subject: [server] Avoid redefining container_of --- src/server/reference.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/server/reference.h b/src/server/reference.h index 75a681f..8304c6b 100644 --- a/src/server/reference.h +++ b/src/server/reference.h @@ -5,8 +5,10 @@ #include #include +#ifndef container_of #define container_of(ptr, type, member) \ ((type *)((char *)(ptr) - (char *)&(((type *)NULL)->member))) +#endif void ref_init( ref *reference, void ( *freefun )( ref * ), long count ); -- cgit v1.2.3-55-g7522