static int dotlock_file(const char *path, int retry)
{
- char lockfile[PATH_MAX];
+ char lockfile[_POSIX_PATH_MAX];
snprintf(lockfile, sizeof(lockfile), "%s.lock", path);
if (lockfile_create(lockfile, retry ? 1 : 0, 0)) {
static int undotlock_file (const char *path)
{
- char lockfile[PATH_MAX];
+ char lockfile[_POSIX_PATH_MAX];
snprintf(lockfile, sizeof(lockfile), "%s.lock", path);
return lockfile_remove(lockfile);
}