Asterisk - The Open Source Telephony Project  18.5.0
utils/db1-ast/include/compat.h
Go to the documentation of this file.
1 /* Values for building 4.4 BSD db routines in the GNU C library. */
2 
3 #ifndef _compat_h_
4 #define _compat_h_
5 
6 #include <fcntl.h>
7 
8 /*
9  * If you can't provide lock values in the open(2) call. Note, this
10  * allows races to happen.
11  */
12 #ifndef O_EXLOCK /* 4.4BSD extension. */
13 #define O_EXLOCK 0
14 #endif
15 
16 #ifndef O_SHLOCK /* 4.4BSD extension. */
17 #define O_SHLOCK 0
18 #endif
19 
20 #include <errno.h>
21 
22 #ifndef EFTYPE
23 #define EFTYPE EINVAL /* POSIX 1003.1 format errno. */
24 #endif
25 
26 #include <unistd.h>
27 #include <limits.h>
28 
29 #ifndef _POSIX_VDISABLE /* POSIX 1003.1 disabling char. */
30 #define _POSIX_VDISABLE 0 /* Some systems used 0. */
31 #endif
32 
33 #include <termios.h>
34 
35 #ifndef TCSASOFT /* 4.4BSD extension. */
36 #define TCSASOFT 0
37 #endif
38 
39 #include <sys/param.h>
40 
41 #ifndef MAX /* Usually found in <sys/param.h>. */
42 #define MAX(_a,_b) ((_a)<(_b)?(_b):(_a))
43 #endif
44 #ifndef MIN /* Usually found in <sys/param.h>. */
45 #define MIN(_a,_b) ((_a)<(_b)?(_a):(_b))
46 #endif
47 
48 
49 #endif /* compat.h */