diff --git a/.gitignore b/.gitignore index 9cc6f1f..5536487 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,5 @@ src/htmldocs/ leveldbtool *.html *.css +build + diff --git a/.gitmodules b/.gitmodules index 06101e6..b11fceb 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ -[submodule "sources"] - path = sources +[submodule "src/vendor"] + path = src/vendor url = https://github.com/google/leveldb diff --git a/build/include/port/port_config.h b/build/include/port/port_config.h new file mode 100644 index 0000000..5c12e38 --- /dev/null +++ b/build/include/port/port_config.h @@ -0,0 +1,33 @@ +// Copyright 2017 The LevelDB Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. See the AUTHORS file for names of contributors. + +#ifndef STORAGE_LEVELDB_PORT_PORT_CONFIG_H_ +#define STORAGE_LEVELDB_PORT_PORT_CONFIG_H_ + +// Define to 1 if you have a definition for fdatasync() in . +#if !defined(HAVE_FDATASYNC) +#define HAVE_FDATASYNC 1 +#endif // !defined(HAVE_FDATASYNC) + +// Define to 1 if you have a definition for F_FULLFSYNC in . +#if !defined(HAVE_FULLFSYNC) +#define HAVE_FULLFSYNC 0 +#endif // !defined(HAVE_FULLFSYNC) + +// Define to 1 if you have a definition for O_CLOEXEC in . +#if !defined(HAVE_O_CLOEXEC) +#define HAVE_O_CLOEXEC 1 +#endif // !defined(HAVE_O_CLOEXEC) + +// Define to 1 if you have Google CRC32C. +#if !defined(HAVE_CRC32C) +#define HAVE_CRC32C 0 +#endif // !defined(HAVE_CRC32C) + +// Define to 1 if you have Google Snappy. +#if !defined(HAVE_SNAPPY) +#define HAVE_SNAPPY 0 +#endif // !defined(HAVE_SNAPPY) + +#endif // STORAGE_LEVELDB_PORT_PORT_CONFIG_H_ diff --git a/sources b/sources deleted file mode 160000 index 99b3c03..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 99b3c03b3284f5886f9ef9a4ef703d57373e61be diff --git a/src/vendor b/src/vendor new file mode 160000 index 0000000..068d5ee --- /dev/null +++ b/src/vendor @@ -0,0 +1 @@ +Subproject commit 068d5ee1a3ac40dabd00d211d5013af44be55bea