diff options
Diffstat (limited to 'bfd/hosts/delta88.h')
-rw-r--r-- | bfd/hosts/delta88.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bfd/hosts/delta88.h b/bfd/hosts/delta88.h index a7a038f..2e9f632 100644 --- a/bfd/hosts/delta88.h +++ b/bfd/hosts/delta88.h @@ -13,7 +13,7 @@ #define USE_UTIME -#ifndef DONTDECLARE_MALLOC +#ifndef DONTDECLARE_MALLOC extern PTR malloc PARAMS ((unsigned)); extern PTR realloc PARAMS ((PTR, unsigned)); #endif @@ -82,3 +82,8 @@ extern int unlink(); #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 |