diff options
Diffstat (limited to 'bfd/hosts/irix3.h')
-rw-r--r-- | bfd/hosts/irix3.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bfd/hosts/irix3.h b/bfd/hosts/irix3.h index caa7901..4672530 100644 --- a/bfd/hosts/irix3.h +++ b/bfd/hosts/irix3.h @@ -23,3 +23,8 @@ #endif #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 |