aboutsummaryrefslogtreecommitdiff
path: root/bfd/hosts/harris.h
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/hosts/harris.h')
-rw-r--r--bfd/hosts/harris.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/bfd/hosts/harris.h b/bfd/hosts/harris.h
index 26ab4a6..82750d4 100644
--- a/bfd/hosts/harris.h
+++ b/bfd/hosts/harris.h
@@ -11,7 +11,7 @@
#include <stdio.h>
-#ifndef DONTDECLARE_MALLOC
+#ifndef DONTDECLARE_MALLOC
extern PTR malloc PARAMS ((unsigned));
extern PTR realloc PARAMS ((PTR, unsigned));
#endif
@@ -24,3 +24,8 @@ extern void bzero PARAMS ((char *, int));
extern int strtol();
#include "fopen-same.h"
+
+/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
+#ifndef offsetof
+#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
+#endif