After fixing #13581 my build still fails with…
0leveldb/util/env_posix.cc: In member function 'virtual leveldb::Status leveldb::{anonymous}::PosixSequentialFile::Read(std::size_t, leveldb::Slice*, char*)':
1leveldb/util/env_posix.cc:105:51: error: 'fread_unlocked' was not declared in this scope
2 size_t r = fread_unlocked(scratch, 1, n, file_);
3 ^
4leveldb/util/env_posix.cc: In member function 'virtual leveldb::Status leveldb::{anonymous}::PosixWritableFile::Append(const leveldb::Slice&)':
5leveldb/util/env_posix.cc:234:66: error: 'fwrite_unlocked' was not declared in this scope
6 size_t r = fwrite_unlocked(data.data(), 1, data.size(), file_);
7 ^
8leveldb/util/env_posix.cc: In member function 'virtual leveldb::Status leveldb::{anonymous}::PosixWritableFile::Flush()':
9leveldb/util/env_posix.cc:251:30: error: 'fflush_unlocked' was not declared in this scope
10 if (fflush_unlocked(file_) != 0) {
11 ^
12leveldb/util/env_posix.cc: In member function 'virtual leveldb::Status leveldb::{anonymous}::PosixWritableFile::Sync()':
13leveldb/util/env_posix.cc:290:30: error: 'fflush_unlocked' was not declared in this scope
14 if (fflush_unlocked(file_) != 0 ||
15 ^
16Makefile:5044: recipe for target 'leveldb/util/leveldb_libleveldb_a-env_posix.o' failed
17make[2]: *** [leveldb/util/leveldb_libleveldb_a-env_posix.o] Error 1
18make[2]: Leaving directory '/opt/local/src/bitcoin/src'
19Makefile:9824: recipe for target 'all-recursive' failed
20make[1]: *** [all-recursive] Error 1
21make[1]: Leaving directory '/opt/local/src/bitcoin/src'
22Makefile:757: recipe for target 'all-recursive' failed
23make: *** [all-recursive] Error 1