diff options
author | John Gilmore <gnu@cygnus> | 1993-09-17 09:08:00 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1993-09-17 09:08:00 +0000 |
commit | c5652bffcbe441880474a8f6c01bccd4d5b0d577 (patch) | |
tree | 0d1cf6a1e405aee866500f4ede4e1c12858e4551 /bfd/hosts/apollo68.h | |
parent | f8efbf2296e731e29df1be4cc391395878846dca (diff) | |
download | gdb-c5652bffcbe441880474a8f6c01bccd4d5b0d577.zip gdb-c5652bffcbe441880474a8f6c01bccd4d5b0d577.tar.gz gdb-c5652bffcbe441880474a8f6c01bccd4d5b0d577.tar.bz2 |
Make sure that "offsetof" is defined on all hosts, now that archive.c uses it.
Diffstat (limited to 'bfd/hosts/apollo68.h')
-rw-r--r-- | bfd/hosts/apollo68.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/bfd/hosts/apollo68.h b/bfd/hosts/apollo68.h index eb14ad8..f644986 100644 --- a/bfd/hosts/apollo68.h +++ b/bfd/hosts/apollo68.h @@ -6,7 +6,7 @@ #include <sys/stat.h> #include <ctype.h> #include <strings.h> -#ifndef O_ACCMODE +#ifndef O_ACCMODE #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) #endif #ifndef SEEK_SET @@ -18,10 +18,15 @@ #define MAXPATHLEN 1024 #endif /* MAXPATHLEN */ -#ifndef DONTDECLARE_MALLOC +#ifndef DONTDECLARE_MALLOC extern PTR malloc PARAMS ((unsigned)); extern PTR realloc PARAMS ((PTR, unsigned)); extern void free PARAMS ((PTR)); #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 |