Commit 6e292244 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Contribs: compile pthread on Win64

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent b045a705
......@@ -2333,6 +2333,7 @@ pthreads-w32-$(PTHREADS_VERSION)-release.tar.gz:
pthreads: pthreads-w32-$(PTHREADS_VERSION)-release.tar.gz
$(EXTRACT_GZ)
(cd $@; patch -p0 < ../Patches/pthreads-detach.patch)
(patch -p0 < Patches/pthreads-win64.patch)
.pthreads: pthreads
(cd $<; $(HOSTCC) make $(PTHREADSCONF) GC GC-static && mkdir -p $(PREFIX)/include && cp -v pthread.h sched.h semaphore.h $(PREFIX)/include/ && mkdir -p $(PREFIX)/lib && cp -v *.a *.dll $(PREFIX)/lib/)
......
--- pthreads/pthread.h 2006-01-24 14:59:57.000000000 +0100
+++ pthreads.new/pthread.h 2010-04-14 15:49:39.000000000 +0200
@@ -302,7 +302,7 @@
#endif
#endif
-#ifndef HAVE_STRUCT_TIMESPEC
+#if !defined( HAVE_STRUCT_TIMESPEC ) && !defined( _TIMESPEC_DEFINED )
#define HAVE_STRUCT_TIMESPEC 1
struct timespec {
long tv_sec;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment