diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2017-09-07 08:01:00 -0300 |
---|---|---|
committer | Jani Heikkinen <jani.heikkinen@qt.io> | 2017-11-23 12:51:31 +0000 |
commit | 2aaf5753197c87a0b3730850a1ab851ffb854d9e (patch) | |
tree | d0e29f93bf611b9f531e35fd7d259daff7b756f4 /dist | |
parent | 915a81d7122fbcb6b28a5368c4d0364f60159bd6 (diff) | |
download | qtbase-2aaf5753197c87a0b3730850a1ab851ffb854d9e.tar.gz |
Fix the build if st_atimensec is defined
It's a trick used by some C libraries to keep compatibility with BSD
extensions while supporting POSIX.1-2008 API. st_atimensec is defined as
st_atim.tv_nsec, so the code would expand to invalid C++
In substitution of 'template<class T> typename std::enable_if<((&T::st_atim.tv_nsec), true), long long int>::type{anonymous}::GetFileTimes::atime(const T&, int) [with T = stat]':
error: invalid use of non-static data member 'stat::st_atim'
Change-Id: I38341f8155354cc4a776fffd14e20f4fc0f6d5bb
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'dist')
0 files changed, 0 insertions, 0 deletions