Another failure to crStop(0) on user abort, this time for SSH-1 cipher
[sgt/putty] / mac / macnet.c
index 9fab15b..ddc3d77 100644 (file)
@@ -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: