summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2004-02-12 23:43:31 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:32:27 -0700
commit89c941084f175904fed110fc254eac0c1897f036 (patch)
treec1f84de9c10b2352b05c8f6ddcdd8fef8e03fbca
parent[PATCH] add some .spec file changes from Red Hat. (diff)
downloadsystemd-89c941084f175904fed110fc254eac0c1897f036.tar.gz
systemd-89c941084f175904fed110fc254eac0c1897f036.tar.bz2
systemd-89c941084f175904fed110fc254eac0c1897f036.zip
[PATCH] fix offsetof() define in klibc.
-rw-r--r--klibc/klibc/include/stddef.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/klibc/klibc/include/stddef.h b/klibc/klibc/include/stddef.h
index 900c147cd..125d2352e 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 */