X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/79bf227ba7ba02e32ac710621b672e2789f9ef50..96ccde8b48fbf8763f44dd5f24014dc0565bbae9:/mac/macnet.c?ds=sidebyside diff --git a/mac/macnet.c b/mac/macnet.c index 9fab15bc..ddc3d77c 100644 --- a/mac/macnet.c +++ b/mac/macnet.c @@ -1,6 +1,7 @@ #include "putty.h" #include "network.h" #include "mac.h" +#include "ssh.h" struct macnet_stack { SockAddr (*namelookup)(char const *, char **); @@ -39,7 +40,7 @@ static struct macnet_stack mactcp = { void sk_init(void) { -#if 0 +#ifndef NO_OT if (ot_init() == noErr) stack = &ot; else @@ -56,7 +57,7 @@ void sk_init(void) * Network functions exported to the world. These choose whether to call * MacTCP or OpenTransport and behave accordingly. */ -SockAddr sk_namelookup(char const *host, char **canonicalname) +SockAddr sk_namelookup(char const *host, char **canonicalname, int address_family) { if (stack != NULL) @@ -137,7 +138,7 @@ Socket sk_new(SockAddr addr, int port, int privport, int oobinline, return NULL; } -Socket sk_newlistener(char *srcaddr, int port, Plug plug, int local_host_only) +Socket sk_newlistener(char *srcaddr, int port, Plug plug, int local_host_only, int address_family) { if (stack != NULL) @@ -174,6 +175,10 @@ int net_service_lookup(char *service) return 0; } +SockAddr platform_get_x11_unix_address(int displaynum, char **canonicalname) +{ + return NULL; +} /* * Local Variables: