From: greg@kroah.com Date: Fri, 13 Feb 2004 07:43:31 +0000 (-0800) Subject: [PATCH] fix offsetof() define in klibc. X-Git-Tag: 017~4 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89c941084f175904fed110fc254eac0c1897f036;p=systemd [PATCH] fix offsetof() define in klibc. --- diff --git a/klibc/klibc/include/stddef.h b/klibc/klibc/include/stddef.h index 900c147c..125d2352 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 */