Make sure that "offsetof" is defined on all hosts, now that archive.c uses it.
[deliverable/binutils-gdb.git] / bfd / hosts / rtbsd.h
1 #include <fcntl.h>
2 #include <errno.h>
3 #include <stdio.h>
4 #include <sys/types.h>
5 #include <sys/stat.h>
6 #include <ctype.h>
7 #include <string.h>
8 #include <sys/file.h>
9
10 #ifndef O_ACCMODE
11 #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
12 #endif
13
14 #define SEEK_SET 0
15 #define SEEK_CUR 1
16
17 extern char *malloc();
18 extern void free();
19
20 #include "fopen-same.h"
21
22 /* From ANSI C <stddef.h>, which we can't depend upon the existence of */
23 #ifndef offsetof
24 #define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
25 #endif
This page took 0.030205 seconds and 5 git commands to generate.