From 37b0d5d05db2ac7487830181c0b81f565de4e51f Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Tue, 4 Jan 2000 03:33:18 +0000 Subject: [PATCH] Rhapsody 5.5 (a.k.a. MacOS X) compiler bug workaround. At the very least passes 'make test' now:-) --- ssl/s2_clnt.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ssl/s2_clnt.c b/ssl/s2_clnt.c index 956c0280c9..d047e89ed6 100644 --- a/ssl/s2_clnt.c +++ b/ssl/s2_clnt.c @@ -310,7 +310,13 @@ static int get_server_hello(SSL *s) SSL_R_PEER_ERROR); return(-1); } +#ifdef __APPLE_CC__ + /* The Rhapsody 5.5 (a.k.a. MacOS X) compiler bug + * workaround. */ + s->hit=(i=*(p++))?1:0; +#else s->hit=(*(p++))?1:0; +#endif s->s2->tmp.cert_type= *(p++); n2s(p,i); if (i < s->version) s->version=i; -- 2.34.1