diff options
Diffstat (limited to 'kconfig/zconf.gperf')
-rw-r--r-- | kconfig/zconf.gperf | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kconfig/zconf.gperf b/kconfig/zconf.gperf index c9e690eb..d758a2ad 100644 --- a/kconfig/zconf.gperf +++ b/kconfig/zconf.gperf @@ -7,6 +7,15 @@ %pic %struct-type +%{ +# ifndef offsetof +# include <stddef.h> +# ifndef offsetof +# define offsetof(st, m) ((size_t)(&((st *)0)->m)) +# endif +# endif +%} + struct kconf_id; static struct kconf_id *kconf_id_lookup(register const char *str, register unsigned int len); |