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);