summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-01-09 00:50:29 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-01-09 00:50:29 +0000
commit0d5af6017e4549c8b622b505c6a7dd80b24df512 (patch)
tree71a17212ff1668a39c826fd64f1ecacdeba2f760 /defines.h
parent48bd7c118a25b950842864c7eb87ef666cbc342d (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.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/defines.h b/defines.h
index 45a187c19..593fcd64c 100644
--- a/defines.h
+++ b/defines.h
@@ -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
208typedef 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
203typedef int sa_family_t; 213typedef int sa_family_t;
204# define HAVE_SA_FAMILY_T 214# define HAVE_SA_FAMILY_T