Include <unistd.h> in db_test

Summary: This is the only compile issue in Ubuntu. It might be better to include <unistd.h> only in env_posix and add Truncate function to Env, but since we use truncate only in db_test, I don't think it makes much sense.

Test Plan: Rocksdb now compiles on Ubuntu!

Reviewers: dhruba, kailiu

Reviewed By: dhruba

CC: leveldb

Differential Revision: https://reviews.facebook.net/D14127
This commit is contained in:
Igor Canadi 2013-11-17 21:58:16 -08:00
parent de9ce7d439
commit fc61428288

View File

@ -9,6 +9,7 @@
#include <algorithm> #include <algorithm>
#include <set> #include <set>
#include <unistd.h>
#include "rocksdb/db.h" #include "rocksdb/db.h"
#include "rocksdb/filter_policy.h" #include "rocksdb/filter_policy.h"