Limit Linux-only code with Q_OS_LINUX
authorPino Toscano <toscano.pino@tiscali.it>
Tue, 5 May 2026 13:51:20 +0000 (16:51 +0300)
committerDmitry Shachnev <mitya57@debian.org>
Tue, 5 May 2026 13:51:20 +0000 (16:51 +0300)
commite8bc43ae402ed78de4f269bc43b669e239c551cc
tree96609be2d115e2f737b9536d7865adc531ebe127
parentcc6fdd8d1a826cfc4e9b94cab3d1f1f34a167c73
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