chore: fix some of FreeBsd compile issues. (#1374)

1. Use experimental/memory_resource because clang on freebsd does not support yet std::memory_resource
2. Pull latest helio with all the compatibility fixes.
3. Replace linux only SOL_TCP constant with IPPROTO_TCP (same value).
4. Fix build files to work on FreeBsd system.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
Roman Gershman 2023-06-11 23:22:56 +03:00 committed by GitHub
parent 9c8b3296b2
commit cf1ac87156
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 105 additions and 59 deletions

View file

@ -67,7 +67,7 @@ void DenseSet::IteratorBase::Advance() {
DCHECK(!curr_entry_->IsEmpty());
}
DenseSet::DenseSet(pmr::memory_resource* mr) : entries_(mr) {
DenseSet::DenseSet(MemoryResource* mr) : entries_(mr) {
}
DenseSet::~DenseSet() {
@ -466,7 +466,7 @@ void DenseSet::Delete(DensePtr* prev, DensePtr* ptr) {
}
void* DenseSet::PopInternal() {
std::pmr::vector<DenseSet::DensePtr>::iterator bucket_iter = entries_.begin();
ChainVectorIterator bucket_iter = entries_.begin();
// find the first non-empty chain
do {