Limit Linux-only code with Q_OS_LINUX
authorPino Toscano <toscano.pino@tiscali.it>
Thu, 28 May 2026 21:30:55 +0000 (21:30 +0000)
committerRaspbian forward porter <root@raspbian.org>
Thu, 28 May 2026 21:30:55 +0000 (21:30 +0000)
commit84966ad9033451c974d0dd590817add3c0e12dff
tree53308768ec11ccad01a8ee40173344c1dbff3104
parenta5e8128d36fab5931884b3eaa3e5eb72b5ed4ade
Limit Linux-only code with Q_OS_LINUX

Forwarded: no
Last-Update: 2020-04-19

The QStorageInfo/QStorageIterator implementation used for Linux is used also
on Hurd, as it uses an interface provided by GNU libc.
QStorageIterator::device() tries to use PATH_MAX (unavailable on the Hurd)
to lookup a /dev/block/ path, which exists on Linux only; hence, perform that
check within a Q_OS_LINUX block.

Gbp-Pq: Name qstorageinfo_linux.diff
src/corelib/io/qstorageinfo_unix.cpp