Limit Linux-only code with Q_OS_LINUX
authorPino Toscano <toscano.pino@tiscali.it>
Thu, 29 Sep 2022 08:41:52 +0000 (09:41 +0100)
committerDmitry Shachnev <mitya57@debian.org>
Thu, 29 Sep 2022 08:41:52 +0000 (09:41 +0100)
commit7ffa0084dc89573316f4bed49e22d0753a3c6168
treec62e86e0f87c6a705ce3835b346b83d85d4c7e23
parent1fdb285d314cc2bf5f40dca4de8b87ce780b6a8c
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