1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-18 03:28:07 -05:00

Carbonise, or at least disable MacTCP support under Carbon.

[originally from svn r2792]
This commit is contained in:
Ben Harris 2003-02-04 02:10:42 +00:00
parent 67312214da
commit 24df1c5463
2 changed files with 7 additions and 0 deletions

View File

@ -27,12 +27,14 @@ static struct macnet_stack ot = {
ot_register, ot_new, ot_newlistener, ot_addr_error, ot_poll, ot_cleanup ot_register, ot_new, ot_newlistener, ot_addr_error, ot_poll, ot_cleanup
}; };
#if !TARGET_API_MAC_CARBON
static struct macnet_stack mactcp = { static struct macnet_stack mactcp = {
mactcp_namelookup, mactcp_nonamelookup, mactcp_getaddr, mactcp_namelookup, mactcp_nonamelookup, mactcp_getaddr,
mactcp_hostname_is_local, mactcp_address_is_local, mactcp_addrtype, mactcp_hostname_is_local, mactcp_address_is_local, mactcp_addrtype,
mactcp_addrcopy, mactcp_addr_free, mactcp_register, mactcp_new, mactcp_addrcopy, mactcp_addr_free, mactcp_register, mactcp_new,
mactcp_newlistener, mactcp_addr_error, mactcp_poll, mactcp_cleanup mactcp_newlistener, mactcp_addr_error, mactcp_poll, mactcp_cleanup
}; };
#endif
void sk_init(void) void sk_init(void)
{ {
@ -42,9 +44,11 @@ void sk_init(void)
stack = &ot; stack = &ot;
else else
#endif #endif
#if !TARGET_API_MAC_CARBON
if (mactcp_init() == noErr) if (mactcp_init() == noErr)
stack = &mactcp; stack = &mactcp;
else else
#endif
stack = NULL; stack = NULL;
} }

View File

@ -27,6 +27,8 @@
* mtcpnet.c - MacTCP interface * mtcpnet.c - MacTCP interface
*/ */
#if !TARGET_API_MAC_CARBON
#include <MacTypes.h> #include <MacTypes.h>
#include <Devices.h> #include <Devices.h>
#include <Endian.h> #include <Endian.h>
@ -836,6 +838,7 @@ int net_service_lookup(char *service)
return 0; return 0;
} }
#endif
/* /*
* Local Variables: * Local Variables: