diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-01-04 18:53:14 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-01-04 18:53:14 +0000 |
commit | f596b0379253a694a6ce5eb725e6f0d9dd1fc46b (patch) | |
tree | c5ad8b7080744ed0037c1cce4a7bb9365b6d9428 /db1-ast/include/compat.h | |
parent | 4e12b55c83563e841b0e39a492cbb71d0c53640c (diff) |
Version 0.3.0 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@578 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'db1-ast/include/compat.h')
-rwxr-xr-x | db1-ast/include/compat.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/db1-ast/include/compat.h b/db1-ast/include/compat.h new file mode 100755 index 000000000..706e58265 --- /dev/null +++ b/db1-ast/include/compat.h @@ -0,0 +1,49 @@ +/* Values for building 4.4 BSD db routines in the GNU C library. */ + +#ifndef _compat_h_ +#define _compat_h_ + +#include <fcntl.h> + +/* + * If you can't provide lock values in the open(2) call. Note, this + * allows races to happen. + */ +#ifndef O_EXLOCK /* 4.4BSD extension. */ +#define O_EXLOCK 0 +#endif + +#ifndef O_SHLOCK /* 4.4BSD extension. */ +#define O_SHLOCK 0 +#endif + +#include <errno.h> + +#ifndef EFTYPE +#define EFTYPE EINVAL /* POSIX 1003.1 format errno. */ +#endif + +#include <unistd.h> +#include <limits.h> + +#ifndef _POSIX_VDISABLE /* POSIX 1003.1 disabling char. */ +#define _POSIX_VDISABLE 0 /* Some systems used 0. */ +#endif + +#include <termios.h> + +#ifndef TCSASOFT /* 4.4BSD extension. */ +#define TCSASOFT 0 +#endif + +#include <sys/param.h> + +#ifndef MAX /* Usually found in <sys/param.h>. */ +#define MAX(_a,_b) ((_a)<(_b)?(_b):(_a)) +#endif +#ifndef MIN /* Usually found in <sys/param.h>. */ +#define MIN(_a,_b) ((_a)<(_b)?(_a):(_b)) +#endif + + +#endif /* compat.h */ |