From 54d2ede9afc23bfae8d1421772fe8acb8fe62f7d Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 14 Nov 2008 22:20:18 +0100 Subject: [PATCH] don't redefine container_of if it's already defined --- uci.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/uci.h b/uci.h index d48ea7c..2ae02b7 100644 --- a/uci.h +++ b/uci.h @@ -432,8 +432,10 @@ struct uci_ptr * @type: the type of the container struct this is embedded in. * @member: the name of the member within the struct. */ +#ifndef container_of #define container_of(ptr, type, member) \ ((type *) ((char *)ptr - offsetof(type,member))) +#endif /** -- 2.41.1