commit | 3ce107de5d7935fdb58235ff0504dee895434eca | [log] [tgz] |
---|---|---|
author | Jan Kundrát <jan.kundrat@cesnet.cz> | Thu Dec 09 23:37:02 2021 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Tue Mar 15 11:36:42 2022 +0100 |
tree | 897275ee0cd4bb8a9d947a9eacfe2f0ba12d7688 | |
parent | 054cad3bea7e8f0ed8474520faf1471b705e150b [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>