diff options
author | greg@kroah.com <greg@kroah.com> | 2004-02-12 23:43:31 -0800 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:32:27 -0700 |
commit | 89c941084f175904fed110fc254eac0c1897f036 (patch) | |
tree | c1f84de9c10b2352b05c8f6ddcdd8fef8e03fbca /klibc | |
parent | 1659326d724e5f94d94d43243e087c54f8508e2b (diff) |
[PATCH] fix offsetof() define in klibc.
Diffstat (limited to 'klibc')
-rw-r--r-- | klibc/klibc/include/stddef.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klibc/klibc/include/stddef.h b/klibc/klibc/include/stddef.h index 900c147cd8..125d2352ec 100644 --- a/klibc/klibc/include/stddef.h +++ b/klibc/klibc/include/stddef.h @@ -19,6 +19,6 @@ #endif #undef offsetof -#define offsetof(t,m) ((size_t)&((t *)0->m)) +#define offsetof(t,m) ((size_t)&((t *)0)->m) #endif /* _STDDEF_H */ |