From 61c3085d476c5d53f4f4f3c5007d89bf4afbb099 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Sun, 4 Dec 2011 15:11:44 +0000 Subject: [PATCH] Workaround for VxWorks --- crypto/cryptlib.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/crypto/cryptlib.c b/crypto/cryptlib.c index 524daf037d..87768d94e7 100644 --- a/crypto/cryptlib.c +++ b/crypto/cryptlib.c @@ -359,7 +359,15 @@ void OPENSSL_showfatal (const char *fmta,...) { va_list ap; va_start (ap,fmta); +#if defined(OPENSSL_SYS_VXWORKS) + { + char buf[256]; + vsnprintf(buf,sizeof(buf),fmta,ap); + printf("%s",buf); + } +#else vfprintf (stderr,fmta,ap); +#endif va_end (ap); } int OPENSSL_isservice (void) { return 0; } -- 2.25.1