mirror of
https://github.com/google/leveldb.git
synced 2024-12-28 04:00:09 +08:00
Sync with upstream @24213649.
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
This commit is contained in:
parent
213a68eb68
commit
26db4d971a
@ -35,6 +35,11 @@ case `uname -s` in
|
|||||||
echo "PLATFORM_CFLAGS=-D_REENTRANT -DOS_FREEBSD" >> build_config.mk
|
echo "PLATFORM_CFLAGS=-D_REENTRANT -DOS_FREEBSD" >> build_config.mk
|
||||||
echo "PLATFORM_LDFLAGS=-lpthread" >> 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!"
|
echo "Unknown platform!"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -26,7 +26,7 @@ class MemEnvTest {
|
|||||||
};
|
};
|
||||||
|
|
||||||
TEST(MemEnvTest, Basics) {
|
TEST(MemEnvTest, Basics) {
|
||||||
size_t file_size;
|
uint64_t file_size;
|
||||||
WritableFile* writable_file;
|
WritableFile* writable_file;
|
||||||
std::vector<std::string> children;
|
std::vector<std::string> children;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user