diff options
Diffstat (limited to 'include/internal/time.h')
-rw-r--r-- | include/internal/time.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/internal/time.h b/include/internal/time.h index 3039327d58..604f9e06d9 100644 --- a/include/internal/time.h +++ b/include/internal/time.h @@ -97,8 +97,10 @@ OSSL_TIME ossl_time_from_timeval(struct timeval tv) { OSSL_TIME t; +#ifndef __DJGPP__ /* tv_sec is unsigned on djgpp. */ if (tv.tv_sec < 0) return ossl_time_zero(); +#endif t.t = tv.tv_sec * OSSL_TIME_SECOND + tv.tv_usec * OSSL_TIME_US; return t; } |