]> git.sesse.net Git - vlc/commitdiff
Contribs: compile pthread on Win64
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 14 Apr 2010 13:57:44 +0000 (15:57 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 14 Apr 2010 14:16:47 +0000 (16:16 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
extras/contrib/src/Makefile
extras/contrib/src/Patches/pthreads-win64.patch [new file with mode: 0644]

index 69c1329073be5b5348c657090785f253637ac70a..a38c635c38633a1786e9a4000b6fec20f00bfd02 100644 (file)
@@ -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/)
diff --git a/extras/contrib/src/Patches/pthreads-win64.patch b/extras/contrib/src/Patches/pthreads-win64.patch
new file mode 100644 (file)
index 0000000..5bb8354
--- /dev/null
@@ -0,0 +1,11 @@
+--- 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;