Failing Compilation on FreeBSD
[datovka #1002110]:
... na FreeBSD. Při kompilaci hlásí chyby
src/io/dbs.cpp:114:24: error: member access into incomplete type 'const
struct timeval'
timeStamp.setTime_t(tv->tv_sec);
^
./src/io/dbs.h:66:40: note: forward declaration of 'timeval'
QString timevalToDbFormat(const struct timeval *tv);
^
src/io/dbs.cpp:117:13: error: member access into incomplete type 'const
struct timeval'
Q_ASSERT(tv->tv_usec < 1000000);
^
./src/io/dbs.h:66:40: note: forward declaration of 'timeval'
QString timevalToDbFormat(const struct timeval *tv);
^
src/io/dbs.cpp:118:34: error: member access into incomplete type 'const
struct timeval'
ret = ret.arg(QString::number(tv->tv_usec), 6, '0');
^
./src/io/dbs.h:66:40: note: forward declaration of 'timeval'
QString timevalToDbFormat(const struct timeval *tv);
^
src/io/dbs.cpp:128:25: error: member access into incomplete type 'const
struct timeval'
timeStamp.setTime_t(tv->tv_sec);
^
./src/io/dbs.h:66:40: note: forward declaration of 'timeval'
QString timevalToDbFormat(const struct timeval *tv);
^
4 errors generated.
*** Error code 1
Stop.
...
FreeBSD 12.0/amd64, 12.0-RELEASE-p7