diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2004-05-17 21:54:57 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2004-05-17 21:54:57 +0000 |
commit | 631eeff208608ed7b44459bd6c8ae905bcd7e8b6 (patch) | |
tree | 7be124105a0929655708fbbc134f9c2e3189c3f3 /gnu/usr.bin/binutils/bfd/sysdep.h | |
parent | a7c8e0ae4a4b349099d02bc9d56bcf1979c0f0c3 (diff) |
Resolve merge conflicts, adjust method of W^X handing (.sh files)
remove testsuites (not useable) remove mmalloc (not part of new binutils).
Diffstat (limited to 'gnu/usr.bin/binutils/bfd/sysdep.h')
-rw-r--r-- | gnu/usr.bin/binutils/bfd/sysdep.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils/bfd/sysdep.h b/gnu/usr.bin/binutils/bfd/sysdep.h index bab1c51a272..1338d6b8265 100644 --- a/gnu/usr.bin/binutils/bfd/sysdep.h +++ b/gnu/usr.bin/binutils/bfd/sysdep.h @@ -125,6 +125,12 @@ extern void free (); extern char *getenv (); #endif +/* Define offsetof for those systems which lack it */ + +#ifndef offsetof +#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) +#endif + #ifdef ENABLE_NLS #include <libintl.h> /* Note the use of dgetext() and PACKAGE here, rather than gettext(). |