diff options
author | Alan Modra <amodra@gmail.com> | 2002-08-20 23:48:18 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-08-20 23:48:18 +0000 |
commit | 7abb6dea2c229c53c6dcdd10bc8de0887d41329c (patch) | |
tree | ea23e35d84bb09997915c9ede65ff6052e25e6be /ld | |
parent | e4c79bb232f98915a52840211e0db72552551b17 (diff) | |
download | gdb-7abb6dea2c229c53c6dcdd10bc8de0887d41329c.zip gdb-7abb6dea2c229c53c6dcdd10bc8de0887d41329c.tar.gz gdb-7abb6dea2c229c53c6dcdd10bc8de0887d41329c.tar.bz2 |
* ldlang.c (offsetof): Define if not defined.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 4 | ||||
-rw-r--r-- | ld/ldlang.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 0a494c9..6794d18 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca> + + * ldlang.c (offsetof): Define if not defined. + 2002-08-14 H.J. Lu <hjl@gnu.org> * configure.tgt: Always enable 64bit emulations for 32bit diff --git a/ld/ldlang.c b/ld/ldlang.c index 79de098..6f85945 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -40,6 +40,10 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include "fnmatch.h" #include "demangle.h" +#ifndef offsetof +#define offsetof(TYPE,MEMBER) ((size_t)&(((TYPE*)0)->MEMBER)) +#endif + /* FORWARDS */ static lang_statement_union_type *new_statement PARAMS ((enum statement_enum, size_t, lang_statement_list_type *)); |