mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-25 11:22:58 +00:00
use LFS-aware QT_FSTRUNCATE definition in QSharedMemoryPrivate::create()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
8cbb188af9
commit
0b78fe4624
1 changed files with 1 additions and 1 deletions
|
@ -260,7 +260,7 @@ bool QSharedMemoryPrivate::create(int size)
|
||||||
|
|
||||||
// the size may only be set once; ignore errors
|
// the size may only be set once; ignore errors
|
||||||
int ret;
|
int ret;
|
||||||
EINTR_LOOP(ret, ftruncate(fd, size));
|
EINTR_LOOP(ret, QT_FTRUNCATE(fd, size));
|
||||||
if (ret == -1) {
|
if (ret == -1) {
|
||||||
setErrorString(QLatin1String("QSharedMemory::create (ftruncate)"));
|
setErrorString(QLatin1String("QSharedMemory::create (ftruncate)"));
|
||||||
qt_safe_close(fd);
|
qt_safe_close(fd);
|
||||||
|
|
Loading…
Add table
Reference in a new issue