summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/a_time.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/asn1/a_time.c')
-rw-r--r--src/lib/libcrypto/asn1/a_time.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/libcrypto/asn1/a_time.c b/src/lib/libcrypto/asn1/a_time.c
index b193f1c71f..8c0ddee4ac 100644
--- a/src/lib/libcrypto/asn1/a_time.c
+++ b/src/lib/libcrypto/asn1/a_time.c
@@ -113,11 +113,9 @@ ASN1_TIME *d2i_ASN1_TIME(ASN1_TIME **a, unsigned char **pp, long length)
113ASN1_TIME *ASN1_TIME_set(ASN1_TIME *s, time_t t) 113ASN1_TIME *ASN1_TIME_set(ASN1_TIME *s, time_t t)
114 { 114 {
115 struct tm *ts; 115 struct tm *ts;
116#if defined(THREADS) && !defined(WIN32) 116#if defined(THREADS) && !defined(WIN32) && !defined(__CYGWIN32__)
117 struct tm data; 117 struct tm data;
118#endif
119 118
120#if defined(THREADS) && !defined(WIN32)
121 gmtime_r(&t,&data); 119 gmtime_r(&t,&data);
122 ts=&data; /* should return &data, but doesn't on some systems, so we don't even look at the return value */ 120 ts=&data; /* should return &data, but doesn't on some systems, so we don't even look at the return value */
123#else 121#else