1
0
Fork 0
mirror of https://repo.or.cz/socat.git synced 2025-07-11 22:23:24 +00:00

Corrected gettimeofday() handling

This commit is contained in:
Gerhard Rieger 2021-10-31 13:04:12 +01:00
parent 4cebaf45e4
commit 25cef1c540
6 changed files with 49 additions and 35 deletions

View file

@ -217,7 +217,7 @@ struct diag_dgram {
enum diag_op op;
#if HAVE_CLOCK_GETTIME
struct timespec now;
#elif HAVE_GETTIMEOFDAY
#elif HAVE_PROTOTYPE_LIB_gettimeofday
struct timeval now;
#else
time_t now;