commit | 8ae30ea88544159976266fef73bf9ef6ddc27e31 | [log] [tgz] |
---|---|---|
author | Jan Kundrát <jan.kundrat@cesnet.cz> | Thu Dec 09 23:37:02 2021 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Thu Dec 16 12:12:03 2021 +0100 |
tree | 897275ee0cd4bb8a9d947a9eacfe2f0ba12d7688 | |
parent | e3d335551ff36cba577f92407e7e816f5c6e1865 [diff] [blame] |
compat: there's no <sys/time.h> on MSVC ...but we won't be really using gettimeofday() there because pthread_mutex_timedlock is provided by the pthread compatibility library that we depend on.
diff --git a/compat/compat.c b/compat/compat.c index bf75c74..d75b961 100644 --- a/compat/compat.c +++ b/compat/compat.c
@@ -24,7 +24,9 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#ifndef _MSC_VER #include <sys/time.h> +#endif #include <time.h> #include <unistd.h>