diff options
Diffstat (limited to 'src/server/reference.h')
-rw-r--r-- | src/server/reference.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 <stddef.h> #include <stdint.h> +#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 ); |