From 89c941084f175904fed110fc254eac0c1897f036 Mon Sep 17 00:00:00 2001 From: "greg@kroah.com" Date: Thu, 12 Feb 2004 23:43:31 -0800 Subject: [PATCH] [PATCH] fix offsetof() define in klibc. --- klibc/klibc/include/stddef.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.39.5