… | |
… | |
24 | #include <limits.h> |
24 | #include <limits.h> |
25 | #include <unistd.h> |
25 | #include <unistd.h> |
26 | #include <fcntl.h> |
26 | #include <fcntl.h> |
27 | |
27 | |
28 | #include <db.h> |
28 | #include <db.h> |
|
|
29 | |
|
|
30 | #if DB_VERSION_MAJOR < 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR < 5) |
|
|
31 | # error you need Berkeley DB 4.5 or newer installed |
|
|
32 | #endif |
29 | |
33 | |
30 | /* number of seconds after which idle threads exit */ |
34 | /* number of seconds after which idle threads exit */ |
31 | #define IDLE_TIMEOUT 10 |
35 | #define IDLE_TIMEOUT 10 |
32 | |
36 | |
33 | /* wether word reads are potentially non-atomic. |
37 | /* wether word reads are potentially non-atomic. |