Limit Linux-only code with Q_OS_LINUX
authorPino Toscano <toscano.pino@tiscali.it>
Sat, 3 Dec 2022 17:38:46 +0000 (17:38 +0000)
committerDmitry Shachnev <mitya57@debian.org>
Sat, 3 Dec 2022 17:38:46 +0000 (17:38 +0000)
commit7cae5ddec441cb58267025e5a56c4fa8c8a07fd2
tree4e243fec489c55d8d4b883b7350ed8806b2cce95
parentde642cfec01a00134d77dad1ca395a348018ef56
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