diff options
author | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-09-16 13:36:57 +0000 |
---|---|---|
committer | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-09-16 13:36:57 +0000 |
commit | ac509d88877c07bb06497206d74a2baa25b6d895 (patch) | |
tree | 1146602c5a370fd479b139f72746e598c7a7178a /linux-user | |
parent | 2acf5af04daf02723a4ba1b720a53b6e718023f4 (diff) |
Move offsetof to osdep.h, remove local defintions.
With this container_of can actually be used without causing build errors.
Reformat container_of.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5234 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user')
-rw-r--r-- | linux-user/signal.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/linux-user/signal.c b/linux-user/signal.c index 8fb3469cca..96409233c8 100644 --- a/linux-user/signal.c +++ b/linux-user/signal.c @@ -549,10 +549,6 @@ int do_sigaction(int sig, const struct target_sigaction *act, return ret; } -#ifndef offsetof -#define offsetof(type, field) ((size_t) &((type *)0)->field) -#endif - static inline int copy_siginfo_to_user(target_siginfo_t *tinfo, const target_siginfo_t *info) { |