]> err.no Git - systemd/commitdiff
[PATCH] fix offsetof() define in klibc.
authorgreg@kroah.com <greg@kroah.com>
Fri, 13 Feb 2004 07:43:31 +0000 (23:43 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:32:27 +0000 (21:32 -0700)
klibc/klibc/include/stddef.h

index 900c147cd866005ff50d0c4a3278c543aec90a74..125d2352ec2567af3455d997dbbc929dda429688 100644 (file)
@@ -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 */