1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-06-06 13:00:59 +03:00
Viktor Szakats e53aae0e16
tidy-up: gettimeofday() fallback and use
Simplify the way we handle `gettimeofday()` fallback for platforms
without native support or without any support. Make it similar to
how we handle `snprintf()`.

In case of no native `gettimeofday()` support and a non-Windows
platform, our local fallback returns zero in `tv_usec` and `tv_sec`,
ending up with a zero `timeout_remaining` in `session.c`, same as
before this patch.

Also:
- drop unused `sys/time.h` headers.
- fix our fallback code to compile with any Windows compilers
  (not just MSVC)
- delete unnecessary casts.

Closes #1001
2023-04-26 00:52:19 +00:00
..
2023-04-10 09:20:13 +00:00
2023-04-14 11:07:53 +00:00
2023-04-14 11:07:53 +00:00
2023-04-14 11:07:53 +00:00
2023-04-18 08:41:20 +00:00
2023-04-14 11:07:53 +00:00
2023-04-14 11:07:53 +00:00
2023-04-14 11:07:53 +00:00
2023-04-14 11:07:53 +00:00
2023-04-18 08:41:20 +00:00
2023-04-26 00:52:19 +00:00