Limit Linux-only code with Q_OS_LINUX
authorPino Toscano <toscano.pino@tiscali.it>
Sat, 17 Feb 2024 12:11:37 +0000 (15:11 +0300)
committerDmitry Shachnev <mitya57@debian.org>
Sat, 17 Feb 2024 12:11:37 +0000 (15:11 +0300)
commit3159454ab926a71edaa34248ffe1ce288aae7e07
treee5092ae8d6e81b76f46aaa1cf8cf8b78dc8812ee
parentfbb5b473a11d408c3fc00f9c3139b5fd7c4b3776
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