GitHub user simonsouth opened a pull request:
https://github.com/apache/thrift/pull/753
THRIFT-3497 Build fails with "invalid use of incomplete type"
This change fixes an "invalid use of incomplete type" compiler error
referring to `struct timeval` when building on Haiku.
- `Monitor.cpp`: Include `thrift-config.h` for definition of
`HAVE_SYS_TIME_H`.
- `Monitor.h`: Explicitly include `sys/time.h` on platforms that require
this.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/simonsouth/thrift
thrift-3497-build-fails-with-invalid-use
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/thrift/pull/753.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #753
----
commit fc8607d5379a48cf3a5e517a4d32e8faa9a9fdea
Author: Simon South <[email protected]>
Date: 2015-12-21T18:01:03Z
THRIFT-3497 Build fails with "invalid use of incomplete type"
- Monitor.cpp: Include thrift-config.h for definition of
HAVE_SYS_TIME_H
- Monitor.h: Explicitly include sys/time.h on platforms that require
this
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---