Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include pthread.h and time.h to get leveldb to build on FreeBSD 10 #151

Merged
merged 1 commit into from
Jul 30, 2015

Conversation

sdebnath
Copy link
Contributor

The current leveldb codebase, using the latest gcc and g++ compilers,
does not build successfully in FreeBSD 10. One will see errors such as:

./util/cache2.h:74:5: error: unknown type name 'time_t'
or
./include/leveldb/env.h:373:13: error: incomplete result type 'pthread'
in function definition

Including the POSIX time.h and pthread.h header files yields a
successful build on FreeBSD 10.x releases.

The current leveldb codebase, using the latest gcc and g++ compilers,
does not build successfully in FreeBSD 10. One will see errors such as:

  ./util/cache2.h:74:5: error: unknown type name 'time_t'
or
  ./include/leveldb/env.h:373:13: error: incomplete result type 'pthread'
  in function definition

Including the POSIX time.h and pthread.h header files yields a
successful build on FreeBSD 10.x releases.
@sdebnath
Copy link
Contributor Author

Ping. Related to basho/riak#496, but these changes are needed to get it to compile.

@fadushin
Copy link
Contributor

fadushin commented Jun 2, 2015

+1 d67605d

matthewvon added a commit that referenced this pull request Jul 30, 2015
fred tested ... says warnings still exist in FreeBSD 10
@matthewvon matthewvon merged commit 3195185 into basho:develop Jul 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants