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/sparc-ll.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/sparc-ll.h')
-rw-r--r-- | bfd/hosts/sparc-ll.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/bfd/hosts/sparc-ll.h b/bfd/hosts/sparc-ll.h index 06658e6..f2578d0 100644 --- a/bfd/hosts/sparc-ll.h +++ b/bfd/hosts/sparc-ll.h @@ -1,5 +1,6 @@ /* Host definition file for Sun-4 running with gcc, using "long long" for addresses, to handle 64-bit target systems. */ +#include <stddef.h> #include <ansidecl.h> #include <fcntl.h> #include <errno.h> @@ -10,7 +11,7 @@ #include <string.h> #include <sys/file.h> #include <alloca.h> -#ifndef O_ACCMODE +#ifndef O_ACCMODE #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) #endif #define SEEK_SET 0 @@ -32,12 +33,12 @@ extern void bcopy PARAMS ((char*, char*, int)); extern int bcmp PARAMS ((char *, char *, int)); extern void bzero PARAMS ((char *, int)); extern PTR memset PARAMS ((PTR, int, unsigned int)); -#ifndef DONTDECLARE_MALLOC +#ifndef DONTDECLARE_MALLOC extern PTR malloc PARAMS ((unsigned)); extern PTR realloc PARAMS ((PTR, unsigned)); #endif -#ifndef __GNUC__ +#ifndef __GNUC__ PTR memcpy PARAMS ((PTR, CONST PTR, unsigned int)); #else /* char * memcpy PARAMS ((char *, CONST char *, unsigned int)); */ @@ -99,7 +100,7 @@ typedef struct { #endif #define BYTES_IN_PRINTF_INT 4 -#ifndef __GNUC__ +#ifndef __GNUC__ #define uint64_typeLOW(x) (unsigned long)(((x).low)) #define uint64_typeHIGH(x) (unsigned long)(((x).high)) #else |