fbnzk / leveldb

Automatically exported from code.google.com/p/leveldb
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Fixing build on MSVC #253

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In file db/c.cc

Condition should be checked if building on Windows platform and if so 
<unistd.h> should not be included

#include <stdlib.h>
#ifndef _MSC_VER
#include <unistd.h>
#endif
#include "leveldb/cache.h"
#include "leveldb/comparator.h"
#include "leveldb/db.h"

For more info: https://github.com/google/leveldb/pull/4

Original issue reported on code.google.com by esado...@gmail.com on 20 Sep 2014 at 3:59