Limit Linux-only code with Q_OS_LINUX
authorPino Toscano <toscano.pino@tiscali.it>
Sat, 13 Jan 2024 16:53:52 +0000 (19:53 +0300)
committerDmitry Shachnev <mitya57@debian.org>
Sat, 13 Jan 2024 16:53:52 +0000 (19:53 +0300)
commit6e9d02562827d84abbb3b39c027f816c91aeff2e
treea37b8c2acaec60684c990326989f87949cce07f9
parent75251e9806666ddb6cc89099770c1f1106042ffa
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