Skip to content

Commit

Permalink
Sync with upstream @24213649.
Browse files Browse the repository at this point in the history
Adding GNU/kFreeBSD support. As requested here:
http://code.google.com/p/leveldb/issues/detail?id=38

Use uint64_t instead of size_t in MemEnvTest. As pointed out at
http://code.google.com/p/leveldb/issues/detail?id=41
  • Loading branch information
zmodem committed Sep 26, 2011
1 parent 213a68e commit 26db4d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions build_detect_platform
Expand Up @@ -35,6 +35,11 @@ case `uname -s` in
echo "PLATFORM_CFLAGS=-D_REENTRANT -DOS_FREEBSD" >> build_config.mk
echo "PLATFORM_LDFLAGS=-lpthread" >> build_config.mk
;;
GNU/kFreeBSD)
PLATFORM=OS_FREEBSD
echo "PLATFORM_CFLAGS=-pthread -DOS_FREEBSD" >> build_config.mk
echo "PLATFORM_LDFLAGS=-lpthread -lrt" >> build_config.mk
;;
*)
echo "Unknown platform!"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion helpers/memenv/memenv_test.cc
Expand Up @@ -26,7 +26,7 @@ class MemEnvTest {
};

TEST(MemEnvTest, Basics) {
size_t file_size;
uint64_t file_size;
WritableFile* writable_file;
std::vector<std::string> children;

Expand Down

0 comments on commit 26db4d9

Please sign in to comment.