| 1 |
|
| 2 |
|
| 3 |
#ifndef _compat_h_ |
| 4 |
#define _compat_h_ |
| 5 |
|
| 6 |
#include <fcntl.h> |
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
#ifndef O_EXLOCK |
| 13 |
#define O_EXLOCK 0 |
| 14 |
#endif |
| 15 |
|
| 16 |
#ifndef O_SHLOCK |
| 17 |
#define O_SHLOCK 0 |
| 18 |
#endif |
| 19 |
|
| 20 |
#include <errno.h> |
| 21 |
|
| 22 |
#ifndef EFTYPE |
| 23 |
#define EFTYPE EINVAL |
| 24 |
#endif |
| 25 |
|
| 26 |
#include <unistd.h> |
| 27 |
#include <limits.h> |
| 28 |
|
| 29 |
#ifndef _POSIX_VDISABLE |
| 30 |
#define _POSIX_VDISABLE 0 |
| 31 |
#endif |
| 32 |
|
| 33 |
#include <termios.h> |
| 34 |
|
| 35 |
#ifndef TCSASOFT |
| 36 |
#define TCSASOFT 0 |
| 37 |
#endif |
| 38 |
|
| 39 |
#include <sys/param.h> |
| 40 |
|
| 41 |
#ifndef MAX |
| 42 |
#define MAX(_a,_b) ((_a)<(_b)?(_b):(_a)) |
| 43 |
#endif |
| 44 |
#ifndef MIN |
| 45 |
#define MIN(_a,_b) ((_a)<(_b)?(_a):(_b)) |
| 46 |
#endif |
| 47 |
|
| 48 |
|
| 49 |
#endif |