summaryrefslogtreecommitdiffstats
path: root/multimedia/gstreamer80/files/patch-libs::ext::cothreads::cothreads::cothreads.c
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2003-08-31 13:37:23 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2003-08-31 13:37:23 +0800
commitb4f6518dbd76d1ab9e0e7958ef45637dd049f848 (patch)
tree183fb3df9083a3ee397dc17999d501ccddc8ea66 /multimedia/gstreamer80/files/patch-libs::ext::cothreads::cothreads::cothreads.c
parent875c9272f4adb6a79ad7987de9ba8dbf47fe45dd (diff)
downloadmarcuscom-ports-b4f6518dbd76d1ab9e0e7958ef45637dd049f848.tar
marcuscom-ports-b4f6518dbd76d1ab9e0e7958ef45637dd049f848.tar.gz
marcuscom-ports-b4f6518dbd76d1ab9e0e7958ef45637dd049f848.tar.bz2
marcuscom-ports-b4f6518dbd76d1ab9e0e7958ef45637dd049f848.tar.lz
marcuscom-ports-b4f6518dbd76d1ab9e0e7958ef45637dd049f848.tar.xz
marcuscom-ports-b4f6518dbd76d1ab9e0e7958ef45637dd049f848.tar.zst
marcuscom-ports-b4f6518dbd76d1ab9e0e7958ef45637dd049f848.zip
Add gstreamer-0.6.3 until it can be updated in the FreeBSD ports tree.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@1116 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'multimedia/gstreamer80/files/patch-libs::ext::cothreads::cothreads::cothreads.c')
-rw-r--r--multimedia/gstreamer80/files/patch-libs::ext::cothreads::cothreads::cothreads.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/multimedia/gstreamer80/files/patch-libs::ext::cothreads::cothreads::cothreads.c b/multimedia/gstreamer80/files/patch-libs::ext::cothreads::cothreads::cothreads.c
new file mode 100644
index 000000000..e0e229f97
--- /dev/null
+++ b/multimedia/gstreamer80/files/patch-libs::ext::cothreads::cothreads::cothreads.c
@@ -0,0 +1,19 @@
+--- libs/ext/cothreads/cothreads/cothreads.c.orig Sat Feb 1 16:09:23 2003
++++ libs/ext/cothreads/cothreads/cothreads.c Mon Mar 17 13:33:43 2003
+@@ -22,6 +22,7 @@
+
+ #include "pth_p.h" /* this pulls in everything */
+ #include <sys/mman.h>
++#include <sys/time.h>
+ #include <sys/resource.h>
+ #include <stdlib.h>
+
+@@ -422,7 +423,7 @@
+ *stack = malloc (_cothreads_chunk_size * (1.0 + 1.0/_cothreads_count));
+ if (!stack)
+ return FALSE;
+- *stack = (void*)((int)*stack &~ (int)(_cothreads_chunk_size / _cothreads_count - 1));
++ *stack = (void*)((intptr_t)*stack &~ (intptr_t)(_cothreads_chunk_size / _cothreads_count - 1));
+ *stack += 1;
+ #endif
+