common.h: add a declaration of hosts_ctl for macOS

Fixes: https://github.com/yrutschle/sslh/issues/492
This commit is contained in:
Sergey Fedorov authored and Yves Rutschle committed 2025-04-08 21:40:58 +02:00
1 parent 1f462ba166
commit eccf7dbdc4
1 file changed
+8
+8
View File
@@ -34,6 +34,10 @@
#include <sys/capability.h>
#endif
#ifdef __APPLE__
#include <AvailabilityMacros.h>
#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);