From eccf7dbdc4e95f6684aacc88adeed8b1950e86f0 Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Mon, 7 Apr 2025 14:10:19 +0800 Subject: [PATCH] common.h: add a declaration of hosts_ctl for macOS Fixes: https://github.com/yrutschle/sslh/issues/492 --- common.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/common.h b/common.h index 3503a95..7243104 100644 --- a/common.h +++ b/common.h @@ -34,6 +34,10 @@ #include #endif +#ifdef __APPLE__ +#include +#endif + #include "config.h" #include "version.h" @@ -182,6 +186,10 @@ extern struct sslhcfg_item cfg; extern struct addrinfo *addr_listen; extern const char* server_type; +#if defined(__APPLE__) && (MAC_OS_X_VERSION_MIN_REQUIRED < 1080) +extern int hosts_ctl(); +#endif + /* sslh-fork.c */ void start_shoveler(int);