[PATCH] fix offsetof() define in klibc.
This commit is contained in:
parent
1659326d72
commit
89c941084f
|
@ -19,6 +19,6 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#undef offsetof
|
#undef offsetof
|
||||||
#define offsetof(t,m) ((size_t)&((t *)0->m))
|
#define offsetof(t,m) ((size_t)&((t *)0)->m)
|
||||||
|
|
||||||
#endif /* _STDDEF_H */
|
#endif /* _STDDEF_H */
|
||||||
|
|
Loading…
Reference in a new issue