torcontrol: Use forward declaration for subprocess::Popen

This commit is contained in:
Luke Dashjr 2025-02-25 17:18:44 +00:00
parent a55f3d33f1
commit 9088343225

View File

@ -15,10 +15,6 @@
#include <netaddress.h>
#include <util/fs.h>
#ifdef ENABLE_TOR_SUBPROCESS
#include <util/subprocess.h>
#endif // ENABLE_TOR_SUBPROCESS
#include <event2/util.h>
#include <cstdint>
@ -27,6 +23,10 @@
#include <string>
#include <vector>
namespace subprocess {
class Popen;
}
constexpr int DEFAULT_TOR_CONTROL_PORT = 9051;
extern const std::string DEFAULT_TOR_CONTROL;
extern const std::string DEFAULT_TOR_EXECUTE;