From 5e4953bc10261ebf8da309203673e9ed66899a5c Mon Sep 17 00:00:00 2001
From: Stu Grossman <grossman@cygnus>
Date: Tue, 17 Sep 1991 01:27:55 +0000
Subject: Put back definition of offsetof.  Only define it if it's not defined
 on this system.

---
 bfd/oasys.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/bfd/oasys.c b/bfd/oasys.c
index 2c0102e..b7834fc 100644
--- a/bfd/oasys.c
+++ b/bfd/oasys.c
@@ -29,6 +29,11 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include "oasys.h"
 #include "liboasys.h"
 
+/* Define offsetof for those systems which lack it */
+
+#ifndef offsetof
+#define offsetof(type, identifier) (size_t) &(((type *) 0)->identifier) 
+#endif
 
 /* Read in all the section data and relocation stuff too */
 PROTO(static boolean,oasys_slurp_section_data,(bfd *CONST abfd));
-- 
cgit v1.1