diff options
Diffstat (limited to 'bfd/hosts/dgux.h')
-rw-r--r-- | bfd/hosts/dgux.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bfd/hosts/dgux.h b/bfd/hosts/dgux.h index ff0573f..c424a50 100644 --- a/bfd/hosts/dgux.h +++ b/bfd/hosts/dgux.h @@ -12,7 +12,7 @@ #include <stdio.h> -#ifndef DONTDECLARE_MALLOC +#ifndef DONTDECLARE_MALLOC extern PTR malloc PARAMS ((unsigned)); extern PTR realloc PARAMS ((PTR, unsigned)); #endif @@ -27,3 +27,8 @@ 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 |