From 259114b51dea79250824676014ffc4d22f7cc220 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Tue, 8 Nov 2022 11:01:38 -0500 Subject: [PATCH] add omitted header certain files needed to include either fstream and our shim for std::filesystem. this includes fstream into our shim and includes this shim in places that require fstream. this is done because some toolchains (cough cough broke af arch linux amalgums) can have weird subsets of the requirements of C++17 that overlap, except when they dont, denoted by unknowable undisclosed circumstances. this issue was reported by a user in the wild, and this fixes it. --- llarp/bootstrap.cpp | 1 + llarp/util/fs.hpp | 2 +- llarp/vpn/linux.hpp | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/llarp/bootstrap.cpp b/llarp/bootstrap.cpp index 7d221ab66..32f830bdc 100644 --- a/llarp/bootstrap.cpp +++ b/llarp/bootstrap.cpp @@ -2,6 +2,7 @@ #include "util/bencode.hpp" #include "util/logging.hpp" #include "util/logging/buffer.hpp" +#include "util/fs.hpp" namespace llarp { diff --git a/llarp/util/fs.hpp b/llarp/util/fs.hpp index 09399646d..93f326fb3 100644 --- a/llarp/util/fs.hpp +++ b/llarp/util/fs.hpp @@ -1,5 +1,5 @@ #pragma once - +#include #ifdef USE_GHC_FILESYSTEM #include namespace fs = ghc::filesystem; diff --git a/llarp/vpn/linux.hpp b/llarp/vpn/linux.hpp index 9dcf9b761..e65362a5d 100644 --- a/llarp/vpn/linux.hpp +++ b/llarp/vpn/linux.hpp @@ -24,6 +24,8 @@ #include #include +#include + namespace llarp::vpn { struct in6_ifreq