OSDN Git Service
(root)
/
kde
/
Katie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cbb188
)
use LFS-aware QT_FSTRUNCATE definition in QSharedMemoryPrivate::create()
author
Ivailo Monev
<xakepa10@laimg.moc>
Tue, 14 Apr 2020 01:07:22 +0000
(
01:07
+0000)
committer
Ivailo Monev
<xakepa10@laimg.moc>
Tue, 14 Apr 2020 01:07:22 +0000
(
01:07
+0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/core/kernel/qsharedmemory_unix.cpp
patch
|
blob
|
history
diff --git
a/src/core/kernel/qsharedmemory_unix.cpp
b/src/core/kernel/qsharedmemory_unix.cpp
index
adcb4ff
..
5b6711f
100644
(file)
--- a/
src/core/kernel/qsharedmemory_unix.cpp
+++ b/
src/core/kernel/qsharedmemory_unix.cpp
@@
-260,7
+260,7
@@
bool QSharedMemoryPrivate::create(int size)
// the size may only be set once; ignore errors
int ret;
- EINTR_LOOP(ret,
ftruncate
(fd, size));
+ EINTR_LOOP(ret,
QT_FTRUNCATE
(fd, size));
if (ret == -1) {
setErrorString(QLatin1String("QSharedMemory::create (ftruncate)"));
qt_safe_close(fd);