From: Jakub Bogusz Date: Sun, 9 Dec 2018 12:34:01 +0000 (+0100) Subject: - added timespec patch (avoid struct timespec conflict with mingw32-runtime time... X-Git-Tag: auto/th/crossmingw32-pthreads-w32-2.9.1-3 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fcrossmingw32-pthreads-w32.git;a=commitdiff_plain;h=8442f4abe5143be86c1e54d6400317384431845d - added timespec patch (avoid struct timespec conflict with mingw32-runtime time.h); release 3 --- diff --git a/crossmingw32-pthreads-w32-timespec.patch b/crossmingw32-pthreads-w32-timespec.patch new file mode 100644 index 0000000..322132f --- /dev/null +++ b/crossmingw32-pthreads-w32-timespec.patch @@ -0,0 +1,11 @@ +--- pthreads-w32-2-9-1-release/pthread.h.orig 2012-05-27 06:16:45.000000000 +0200 ++++ pthreads-w32-2-9-1-release/pthread.h 2018-12-09 12:42:13.610057177 +0100 +@@ -315,7 +315,7 @@ + + #if !defined(HAVE_STRUCT_TIMESPEC) + #define HAVE_STRUCT_TIMESPEC +-#if !defined(_TIMESPEC_DEFINED) ++#if !defined(_TIMESPEC_DEFINED) && !defined(__struct_timespec_defined) + #define _TIMESPEC_DEFINED + struct timespec { + time_t tv_sec; diff --git a/crossmingw32-pthreads-w32.spec b/crossmingw32-pthreads-w32.spec index a189cd9..0b0c2c2 100644 --- a/crossmingw32-pthreads-w32.spec +++ b/crossmingw32-pthreads-w32.spec @@ -3,11 +3,12 @@ Summary(pl.UTF-8): Implementacja komponentu POSIX Threads dla Win32 - wersja skr Name: crossmingw32-pthreads-w32 Version: 2.9.1 %define dver %(echo %{version} | tr . -) -Release: 2 +Release: 3 License: LGPL v2.1 Group: Development/Libraries Source0: ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-%{dver}-release.tar.gz # Source0-md5: 36ba827d6aa0fa9f9ae740a35626e2e3 +Patch0: %{name}-timespec.patch URL: http://www.sourceware.org/pthreads-win32/ BuildRequires: crossmingw32-gcc BuildRequires: sed >= 4.0 @@ -82,6 +83,7 @@ POSIX Threads - biblioteka DLL dla Windows. %prep %setup -q -n pthreads-w32-%{dver}-release +%patch0 -p1 mkdir lib