Limit Linux-only code with Q_OS_LINUX
authorPino Toscano <toscano.pino@tiscali.it>
Mon, 24 Mar 2025 12:42:48 +0000 (15:42 +0300)
committerDmitry Shachnev <mitya57@debian.org>
Mon, 24 Mar 2025 12:42:48 +0000 (15:42 +0300)
commitf7ec1b60993cf921dfbeac48e64b539c834039d4
tree510df8311bf4bd926862c9ad41a18a96cb22ce9a
parentd5c9ffe49180f784e7b07cb72e53c4a1822c630b
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