From 1e84a4b7fb7e5de40dce017b3945fbaf20647d78 Mon Sep 17 00:00:00 2001 From: DrIxioner <85682206+DrIxionerr@users.noreply.github.com> Date: Mon, 14 Jun 2021 09:37:17 +0200 Subject: [PATCH] timeSpec no longer needed for VS 2019 The redefinition of timespec is the same bloc of code already implemented in VS2019. It could be interesting to delete these lines to allow correct build with VS2019 (and execution with VS redist 2019). --- pthread.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pthread.h b/pthread.h index 436ea8b..c2502cc 100644 --- a/pthread.h +++ b/pthread.h @@ -315,13 +315,6 @@ enum { #if !defined(HAVE_STRUCT_TIMESPEC) #define HAVE_STRUCT_TIMESPEC -#if !defined(_TIMESPEC_DEFINED) -#define _TIMESPEC_DEFINED -struct timespec { - time_t tv_sec; - long tv_nsec; -}; -#endif /* _TIMESPEC_DEFINED */ #endif /* HAVE_STRUCT_TIMESPEC */ #if !defined(SIG_BLOCK)