diff options
author | Robert de Bath <rdebath@poboxes.com> | 1997-02-25 20:42:19 +0100 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2013-10-23 23:38:07 +0200 |
commit | 4c36e9a0c125ccfff37aa440dab2cf58c4152fff (patch) | |
tree | a5d9c84ba2661029ddb2223dacd50529a361c3d5 /ld/syshead.h | |
parent | f8de35da65c5d93bb733073cf40da154bc1c0748 (diff) | |
parent | 9696d7b0e1f3a1b0f5fd4a0428eb75afe8ad4ed6 (diff) | |
download | dev86-4c36e9a0c125ccfff37aa440dab2cf58c4152fff.tar.gz |
Import Dev86src-0.0.11.tar.gzv0.0.11
Diffstat (limited to 'ld/syshead.h')
-rw-r--r-- | ld/syshead.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/ld/syshead.h b/ld/syshead.h index f5f32ea..7e110ab 100644 --- a/ld/syshead.h +++ b/ld/syshead.h @@ -6,15 +6,14 @@ #endif #ifndef POSIX_HEADERS_MISSING -#include <unistd.h> #include <sys/types.h> #include <sys/stat.h> +#include <unistd.h> #include <fcntl.h> #endif #ifdef MSDOS #undef POSIX_HEADERS_MISSING - #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> @@ -27,10 +26,6 @@ #define STDOUT_FILENO 0 #endif -#ifndef O_BINARY -#define O_BINARY 0 -#endif - /******************************************************************************/ /* EEEEyuk!! */ @@ -54,8 +49,6 @@ void *memset P((void *s, int c, unsigned n)); #endif #ifdef POSIX_HEADERS_MISSING -#include <sys/types.h> -#include <sys/stat.h> #define R_OK 0 int access P((const char *path, int amode)); @@ -76,3 +69,12 @@ mode_t umask P((int oldmask)); int write P((int fd, const void *buf, unsigned nbytes)); #endif +#ifndef O_RDONLY +#define O_RDONLY 0 +#endif +#ifndef O_WRONLY +#define O_WRONLY 1 +#endif +#ifndef O_RDWR +#define O_RDWR 2 +#endif |