mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 20:24:13 +08:00
mdbx: add explicit error message for Buildroot's Microblaze toolchain maintainers.
This commit is contained in:
parent
5368551081
commit
26f52a19c3
@ -201,9 +201,12 @@ static int lck_op(const mdbx_filehandle_t fd, int cmd, const int lck,
|
|||||||
((uint64_t)offset + (uint64_t)len));
|
((uint64_t)offset + (uint64_t)len));
|
||||||
for (;;) {
|
for (;;) {
|
||||||
struct flock lock_op;
|
struct flock lock_op;
|
||||||
STATIC_ASSERT(sizeof(off_t) <= sizeof(lock_op.l_start) &&
|
STATIC_ASSERT_MSG(sizeof(off_t) <= sizeof(lock_op.l_start) &&
|
||||||
sizeof(off_t) <= sizeof(lock_op.l_len) &&
|
sizeof(off_t) <= sizeof(lock_op.l_len) &&
|
||||||
OFF_T_MAX == (off_t)OFF_T_MAX);
|
OFF_T_MAX == (off_t)OFF_T_MAX,
|
||||||
|
"Support for large/64-bit-sized files is misconfigured "
|
||||||
|
"for the target system and/or toolchain. "
|
||||||
|
"Please fix it or at least disable it completely.");
|
||||||
memset(&lock_op, 0, sizeof(lock_op));
|
memset(&lock_op, 0, sizeof(lock_op));
|
||||||
lock_op.l_type = lck;
|
lock_op.l_type = lck;
|
||||||
lock_op.l_whence = SEEK_SET;
|
lock_op.l_whence = SEEK_SET;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user