summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcompilation3
-rw-r--r--pthreads-w32.patch17
2 files changed, 20 insertions, 0 deletions
diff --git a/compilation b/compilation
index 0690f3d..0ed064c 100755
--- a/compilation
+++ b/compilation
@@ -119,6 +119,9 @@ tar xvfz ftgl-win32-precomp.tar.gz
tar xvfz freetype-win32-precomp.tar.gz
tar xvfz mysql-5.0.51b-win32-precomp.tar.gz
tar xvfz pthreads-w32-2-8-0-release-win32-precomp.tar.gz
+cd pthreads-w32-2-8-0-release
+patch < ../pthreads-w32.patch
+cd ..
tar xvfz gnuwin32-digested.tar.gz
gunzip libreadline-static.a.gz
diff --git a/pthreads-w32.patch b/pthreads-w32.patch
new file mode 100644
index 0000000..17db0e3
--- /dev/null
+++ b/pthreads-w32.patch
@@ -0,0 +1,17 @@
+--- pthread-orig.h 2013-05-13 02:48:34.000000000 +0200
++++ pthread.h 2013-05-13 02:48:43.000000000 +0200
+@@ -304,10 +304,10 @@
+
+ #ifndef HAVE_STRUCT_TIMESPEC
+ #define HAVE_STRUCT_TIMESPEC 1
+-struct timespec {
+- long tv_sec;
+- long tv_nsec;
+-};
++//struct timespec {
++// long tv_sec;
++// long tv_nsec;
++//};
+ #endif /* HAVE_STRUCT_TIMESPEC */
+
+ #ifndef SIG_BLOCK