Limit Linux-only code with Q_OS_LINUX
authorPino Toscano <toscano.pino@tiscali.it>
Sun, 14 Jul 2024 15:35:58 +0000 (18:35 +0300)
committerDmitry Shachnev <mitya57@debian.org>
Sun, 14 Jul 2024 15:35:58 +0000 (18:35 +0300)
commit3746520852ad126faea22279511db3b82e3022ca
tree4197326e51e092b579e491df268fb3fb952df2a0
parenta2c7313c787f815fe4e3084e74dbf0e57711bc4d
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