diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-01-09 00:50:29 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-01-09 00:50:29 +0000 |
commit | 0d5af6017e4549c8b622b505c6a7dd80b24df512 (patch) | |
tree | 71a17212ff1668a39c826fd64f1ecacdeba2f760 /defines.h | |
parent | 48bd7c118a25b950842864c7eb87ef666cbc342d (diff) |
- (bal) Detect if clock_t structure exists, if not define it.
- (bal) Detect if O_NONBLOCK exists, if not define it.
- (bal) removed news4-posix.h (now empty)
- (bal) changed bsd-bindresvport.c and bsd-rresvport.c to use 'socklen_t'
instead of 'int'
Diffstat (limited to 'defines.h')
-rw-r--r-- | defines.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -47,6 +47,7 @@ #include <unistd.h> /* For STDIN_FILENO, etc */ #include <termios.h> /* Struct winsize */ +#include <fcntl.h> /* For O_NONBLOCK */ /* Constants */ @@ -88,6 +89,10 @@ enum # define STDERR_FILENO 2 #endif +#ifndef O_NONBLOCK /* Non Blocking Open */ +# define O_NONBLOCK 00004 +#endif + #ifndef S_ISREG # define S_ISDIR(mode) (((mode) & (_S_IFMT)) == (_S_IFDIR)) # define S_ISREG(mode) (((mode) & (_S_IFMT)) == (_S_IFREG)) @@ -199,6 +204,11 @@ typedef int ssize_t; # define HAVE_SSIZE_T #endif /* HAVE_SSIZE_T */ +#ifndef HAVE_CLOCK_T +typedef long clock_t; +# define HAVE_CLOCK_T +#endif; /* HAVE_CLOCK_T */ + #ifndef HAVE_SA_FAMILY_T typedef int sa_family_t; # define HAVE_SA_FAMILY_T |