Limit Linux-only code with Q_OS_LINUX
authorPino Toscano <toscano.pino@tiscali.it>
Fri, 13 Jan 2023 07:41:54 +0000 (07:41 +0000)
committerDmitry Shachnev <mitya57@debian.org>
Fri, 13 Jan 2023 07:41:54 +0000 (07:41 +0000)
commit70255fc5002c36696499a89367eec709cd2b3247
treeadc0d9c75cd406d9d03e6154cd7753b7204b91d5
parentb67731e075b4d81490003f773212303168d4ee3c
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