From 0d5af6017e4549c8b622b505c6a7dd80b24df512 Mon Sep 17 00:00:00 2001 From: Ben Lindstrom Date: Tue, 9 Jan 2001 00:50:29 +0000 Subject: - (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' --- defines.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'defines.h') diff --git a/defines.h b/defines.h index 45a187c19..593fcd64c 100644 --- a/defines.h +++ b/defines.h @@ -47,6 +47,7 @@ #include /* For STDIN_FILENO, etc */ #include /* Struct winsize */ +#include /* 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 -- cgit v1.2.3