* hosts/sysv4.h: Include <unistd.h>, <stdlib.h>, and <time.h>.
[external/binutils.git] / bfd / hosts / sysv4.h
1 /* System V Release 4 Unix host system */
2
3 #include <stddef.h>
4 #include <ansidecl.h>
5 #include <fcntl.h>
6 #include <errno.h>
7 #include <stdio.h>
8 #include <sys/types.h>
9 #include <sys/stat.h>
10 #include <utime.h>
11 #include <ctype.h>
12 #include <string.h>
13 #include <sys/file.h>
14 #include <unistd.h>
15 #include <stdlib.h>
16 #include <time.h>
17
18 #ifndef O_ACCMODE
19 #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
20 #endif
21 #ifndef SEEK_SET
22 #define SEEK_SET 0
23 #endif
24 #ifndef SEEK_CUR
25 #define SEEK_CUR 1
26 #endif
27
28 #define POSIX_UTIME
29
30 /* Note that we also use this for ptx4 (sequent).  ptx4 does not
31    really have procfs, but it has the relevant headers for BFD to read
32    core files, so the proper thing to do for ptx4 is define
33    HAVE_PROCFS in BFD but not GDB.  */
34
35 #define HAVE_PROCFS     /* This host has /proc support */
36
37 #include "fopen-same.h"