projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4c79bb
)
* ldlang.c (offsetof): Define if not defined.
author
Alan Modra
<amodra@gmail.com>
Tue, 20 Aug 2002 23:48:18 +0000
(23:48 +0000)
committer
Alan Modra
<amodra@gmail.com>
Tue, 20 Aug 2002 23:48:18 +0000
(23:48 +0000)
ld/ChangeLog
patch
|
blob
|
history
ld/ldlang.c
patch
|
blob
|
history
diff --git
a/ld/ChangeLog
b/ld/ChangeLog
index 0a494c92cd2d875494e71c275aee7952b2ce27ba..6794d181a8bd0c1a377eb0a4699bdddcfb24f09c 100644
(file)
--- 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 79de0987ff2f5fc919ac9aa2a1e77d9ab014482a..6f85945d1006f359e3967a873ab01c881707cdd1 100644
(file)
--- 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 *));