diff options
Diffstat (limited to 'inc/dnbd3/types.h')
-rw-r--r-- | inc/dnbd3/types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/dnbd3/types.h b/inc/dnbd3/types.h index 699fa68..bd15f4e 100644 --- a/inc/dnbd3/types.h +++ b/inc/dnbd3/types.h @@ -30,6 +30,7 @@ #include <stdbool.h> #include <stddef.h> #include <string.h> +#define container_of( ptr, type, member ) ( (type *)( (char *)( ptr ) - (char *)&( ( (type *)NULL )->member ) ) ) #endif #ifndef MIN |