|
@@ -74,9 +74,6 @@ |
|
|
#include <fcntl.h> |
|
|
#include <fcntl.h> |
|
|
#include <libgen.h> |
|
|
#include <libgen.h> |
|
|
#include <limits.h> |
|
|
#include <limits.h> |
|
|
#ifdef __gnu_hurd__ |
|
|
|
|
|
#define PATH_MAX 4096 |
|
|
|
|
|
#endif |
|
|
|
|
|
#ifndef NOLOCALE |
|
|
#ifndef NOLOCALE |
|
|
#include <locale.h> |
|
|
#include <locale.h> |
|
|
#endif |
|
|
#endif |
|
@@ -118,6 +115,18 @@ |
|
|
#define S_BLKSIZE 512 /* S_BLKSIZE is missing on Android NDK (Termux) */ |
|
|
#define S_BLKSIZE 512 /* S_BLKSIZE is missing on Android NDK (Termux) */ |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
|
* NAME_MAX and PATH_MAX may not exist, e.g. with dirent.c_name being a |
|
|
|
|
|
* flexible array on Illumos. Use somewhat accomodating fallback values. |
|
|
|
|
|
*/ |
|
|
|
|
|
#ifndef NAME_MAX |
|
|
|
|
|
#define NAME_MAX 255 |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#ifndef PATH_MAX |
|
|
|
|
|
#define PATH_MAX 4096 |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
#define _ABSSUB(N, M) (((N) <= (M)) ? ((M) - (N)) : ((N) - (M))) |
|
|
#define _ABSSUB(N, M) (((N) <= (M)) ? ((M) - (N)) : ((N) - (M))) |
|
|
#define DOUBLECLICK_INTERVAL_NS (400000000) |
|
|
#define DOUBLECLICK_INTERVAL_NS (400000000) |
|
|
#define XDELAY_INTERVAL_MS (350000) /* 350 ms delay */ |
|
|
#define XDELAY_INTERVAL_MS (350000) /* 350 ms delay */ |
|
|