diff options
Diffstat (limited to 'defines.h')
-rw-r--r-- | defines.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -47,6 +47,7 @@ | |||
47 | 47 | ||
48 | #include <unistd.h> /* For STDIN_FILENO, etc */ | 48 | #include <unistd.h> /* For STDIN_FILENO, etc */ |
49 | #include <termios.h> /* Struct winsize */ | 49 | #include <termios.h> /* Struct winsize */ |
50 | #include <fcntl.h> /* For O_NONBLOCK */ | ||
50 | 51 | ||
51 | /* Constants */ | 52 | /* Constants */ |
52 | 53 | ||
@@ -88,6 +89,10 @@ enum | |||
88 | # define STDERR_FILENO 2 | 89 | # define STDERR_FILENO 2 |
89 | #endif | 90 | #endif |
90 | 91 | ||
92 | #ifndef O_NONBLOCK /* Non Blocking Open */ | ||
93 | # define O_NONBLOCK 00004 | ||
94 | #endif | ||
95 | |||
91 | #ifndef S_ISREG | 96 | #ifndef S_ISREG |
92 | # define S_ISDIR(mode) (((mode) & (_S_IFMT)) == (_S_IFDIR)) | 97 | # define S_ISDIR(mode) (((mode) & (_S_IFMT)) == (_S_IFDIR)) |
93 | # define S_ISREG(mode) (((mode) & (_S_IFMT)) == (_S_IFREG)) | 98 | # define S_ISREG(mode) (((mode) & (_S_IFMT)) == (_S_IFREG)) |
@@ -199,6 +204,11 @@ typedef int ssize_t; | |||
199 | # define HAVE_SSIZE_T | 204 | # define HAVE_SSIZE_T |
200 | #endif /* HAVE_SSIZE_T */ | 205 | #endif /* HAVE_SSIZE_T */ |
201 | 206 | ||
207 | #ifndef HAVE_CLOCK_T | ||
208 | typedef long clock_t; | ||
209 | # define HAVE_CLOCK_T | ||
210 | #endif; /* HAVE_CLOCK_T */ | ||
211 | |||
202 | #ifndef HAVE_SA_FAMILY_T | 212 | #ifndef HAVE_SA_FAMILY_T |
203 | typedef int sa_family_t; | 213 | typedef int sa_family_t; |
204 | # define HAVE_SA_FAMILY_T | 214 | # define HAVE_SA_FAMILY_T |