aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/o_time.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2003-06-12 00:57:25 +0000
committerRichard Levitte <levitte@openssl.org>2003-06-12 00:57:25 +0000
commit8645c415cf2cbb6ca1256cd3286c03f37aa88742 (patch)
tree4e595712d01c1342a35e3be4a872b3a6cff76ab8 /crypto/o_time.c
parent700d86ea18b5c4f3fc0402ca5b4e9bc35f11d85c (diff)
downloadopenssl-8645c415cf2cbb6ca1256cd3286c03f37aa88742.tar.gz
Do not try to use non-existent gmtime_r() on SunOS4.
PR: 585
Diffstat (limited to 'crypto/o_time.c')
-rw-r--r--crypto/o_time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/o_time.c b/crypto/o_time.c
index 723eb1b5af..785468131e 100644
--- a/crypto/o_time.c
+++ b/crypto/o_time.c
@@ -73,7 +73,7 @@ struct tm *OPENSSL_gmtime(const time_t *timer, struct tm *result)
{
struct tm *ts = NULL;
-#if defined(OPENSSL_THREADS) && !defined(OPENSSL_SYS_WIN32) && !defined(OPENSSL_SYS_OS2) && !defined(__CYGWIN32__) && (!defined(OPENSSL_SYS_VMS) || defined(gmtime_r)) && !defined(OPENSSL_SYS_MACOSX)
+#if defined(OPENSSL_THREADS) && !defined(OPENSSL_SYS_WIN32) && !defined(OPENSSL_SYS_OS2) && !defined(__CYGWIN32__) && (!defined(OPENSSL_SYS_VMS) || defined(gmtime_r)) && !defined(OPENSSL_SYS_MACOSX) && !defined(OPENSSL_SYS_SUNOS)
/* should return &data, but doesn't on some systems,
so we don't even look at the return value */
gmtime_r(timer,result);