diff options
Diffstat (limited to 'bfd/hosts/i386v.h')
-rw-r--r-- | bfd/hosts/i386v.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/bfd/hosts/i386v.h b/bfd/hosts/i386v.h index 2d2c8ee..5954a94 100644 --- a/bfd/hosts/i386v.h +++ b/bfd/hosts/i386v.h @@ -8,10 +8,10 @@ #include <string.h> #include <unistd.h> -#ifndef O_ACCMODE +#ifndef O_ACCMODE #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) #endif -#ifndef SEEK_SET +#ifndef SEEK_SET #define SEEK_SET 0 #define SEEK_CUR 1 #endif @@ -28,10 +28,15 @@ #include <string.h> -#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 |