From ae6077f431bdac21db8758c5ba1a9fa75086b408 Mon Sep 17 00:00:00 2001 From: chombier <> Date: Wed, 28 Mar 2001 14:21:25 +0000 Subject: [PATCH] GUSI 2.1.6b2 update --- macssh/source/ssh/GUSIPatch1.cp | 3 +++ macssh/source/ssh/GUSIPatch2.cp | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/macssh/source/ssh/GUSIPatch1.cp b/macssh/source/ssh/GUSIPatch1.cp index 9ee883f..6459858 100755 --- a/macssh/source/ssh/GUSIPatch1.cp +++ b/macssh/source/ssh/GUSIPatch1.cp @@ -318,6 +318,8 @@ done: * Let's clear it upon kOTProviderWillClose message. */ +/* moved to GUSIPatch2.cp : 68k version no longer links otherwise */ +/* // = inline uint32_t CompleteMask(OTEventCode code) { @@ -372,6 +374,7 @@ pascal void GUSIOTNetDBNotify( netdb->fAsyncError = result; context->Wakeup(); } +*/ /* * we need to track open()/dup()/close()/socket() calls to close files/sockets diff --git a/macssh/source/ssh/GUSIPatch2.cp b/macssh/source/ssh/GUSIPatch2.cp index 69c755b..4ee62eb 100755 --- a/macssh/source/ssh/GUSIPatch2.cp +++ b/macssh/source/ssh/GUSIPatch2.cp @@ -61,8 +61,16 @@ inline uint32_t CompleteMask(OTEventCode code) return 1 << (code & 0x1F); } +#if UNIVERSAL_INTERFACES_VERSION >= 0x0334 +pascal void GUSIOTNetDBNotify( + void *contextPtr, OTEventCode code, OTResult result, void *cookie) +{ + GUSIOTNetDB * netdb = static_cast(contextPtr); +#else pascal void GUSIOTNetDBNotify( GUSIOTNetDB * netdb, OTEventCode code, OTResult result, void *cookie) +{ +#endif { GUSI_MESSAGE(("GUSIOTNetDBNotify %08x %d\n", code, result)); GUSIContext * context = netdb->fCreationContext;