summaryrefslogtreecommitdiffstats
path: root/src/concurrent/qtconcurrentrun.cpp
diff options
context:
space:
mode:
authorPino Toscano <toscano.pino@tiscali.it>2022-02-10 08:26:11 +0100
committerPino Toscano <toscano.pino@tiscali.it>2022-02-11 15:36:02 +0100
commit7c54988b1b3b9eb4d2f3650c1ba5ffe97673ca92 (patch)
tree4ece7623f793e4cd2f3dbec66ce935f62f9b215b /src/concurrent/qtconcurrentrun.cpp
parent15f7ef26b8d2901ded1edf866dfbc32a9ac6042a (diff)
Avoid a stack buffer when not needed
Allocate a PATH_MAX-sized buffer on stack only in case we are not using realpath(X, null), i.e. on platforms with older POSIX versions, macOS, or Android. This fixes the build on platforms that do not have PATH_MAX (e.g. GNU/Hurd), and it provides a minor optimization on realpath(X, null) platforms. Change-Id: Icd92a1b15ec18c5eef8113408e9610dfac774101 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/concurrent/qtconcurrentrun.cpp')
0 files changed, 0 insertions, 0 deletions