diff options
Diffstat (limited to 'bfd/hosts/sun3.h')
-rw-r--r-- | bfd/hosts/sun3.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/bfd/hosts/sun3.h b/bfd/hosts/sun3.h index bd8b2ab..dfb505c 100644 --- a/bfd/hosts/sun3.h +++ b/bfd/hosts/sun3.h @@ -7,7 +7,7 @@ #include <ctype.h> #include <string.h> #include <sys/file.h> -#ifndef O_ACCMODE +#ifndef O_ACCMODE #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) #endif #define SEEK_SET 0 @@ -36,7 +36,7 @@ extern int chmod(); extern int fstat(); extern int stat(); extern int strtol(); -#ifndef DONTDECLARE_MALLOC +#ifndef DONTDECLARE_MALLOC extern PTR malloc PARAMS ((unsigned)); extern PTR realloc PARAMS ((PTR, unsigned)); #endif @@ -54,3 +54,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 |