diff options
| author | Theo Buehler <tb@openbsd.org> | 2024-05-25 08:56:45 +0200 |
|---|---|---|
| committer | Theo Buehler <tb@openbsd.org> | 2024-05-25 13:49:18 +0200 |
| commit | f9874d49f651177d643cc86f8837db44c4a29558 (patch) | |
| tree | 46e390fc24c101016532011a8b960903a4ee7b9b /include | |
| parent | f785e2954a847ebaa8559b65c2b5030489ce5556 (diff) | |
| download | portable-f9874d49f651177d643cc86f8837db44c4a29558.tar.gz portable-f9874d49f651177d643cc86f8837db44c4a29558.tar.bz2 portable-f9874d49f651177d643cc86f8837db44c4a29558.zip | |
Remove timegm() compat
Now that all uses of gmtime_r() and timegm() have been converted to
OPENSSL_gmtime() and OPENSSL_timegm(), this is no longer needed.
Diffstat (limited to 'include')
| -rw-r--r-- | include/compat/time.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/compat/time.h b/include/compat/time.h index 2748521..a0f6d29 100644 --- a/include/compat/time.h +++ b/include/compat/time.h | |||
| @@ -24,15 +24,6 @@ | |||
| 24 | #ifndef LIBCRYPTOCOMPAT_TIME_H | 24 | #ifndef LIBCRYPTOCOMPAT_TIME_H |
| 25 | #define LIBCRYPTOCOMPAT_TIME_H | 25 | #define LIBCRYPTOCOMPAT_TIME_H |
| 26 | 26 | ||
| 27 | #ifdef _WIN32 | ||
| 28 | struct tm *__gmtime_r(const time_t * t, struct tm * tm); | ||
| 29 | #define gmtime_r(tp, tm) __gmtime_r(tp, tm) | ||
| 30 | #endif | ||
| 31 | |||
| 32 | #ifndef HAVE_TIMEGM | ||
| 33 | time_t timegm(struct tm *tm); | ||
| 34 | #endif | ||
| 35 | |||
| 36 | #ifndef CLOCK_MONOTONIC | 27 | #ifndef CLOCK_MONOTONIC |
| 37 | #define CLOCK_MONOTONIC CLOCK_REALTIME | 28 | #define CLOCK_MONOTONIC CLOCK_REALTIME |
| 38 | #endif | 29 | #endif |
