Root/libgc/patches/001-os_dep.patch

Source at commit 1b3135c created 9 years 13 days ago.
By Xiangfu Liu, new package: SDL-widgets: a GUI toolkit on top of the SDL libraries
1--- gc-7.2alpha4.orig/os_dep.c 2010-09-25 17:47:19.651870610 +0400
2+++ gc-7.2alpha4/os_dep.c 2010-09-25 21:40:13.382745526 +0400
3@@ -1211,7 +1211,7 @@
4 {
5     pthread_attr_t attr;
6     size_t size;
7-
8+/*
9     if (pthread_getattr_np(pthread_self(), &attr) != 0) {
10         WARN("pthread_getattr_np failed\n", 0);
11         return GC_UNIMPLEMENTED;
12@@ -1219,6 +1219,7 @@
13     if (pthread_attr_getstack(&attr, &(b -> mem_base), &size) != 0) {
14         ABORT("pthread_attr_getstack failed");
15     }
16+ */
17     pthread_attr_destroy(&attr);
18 # ifdef STACK_GROWS_DOWN
19         b -> mem_base = (char *)(b -> mem_base) + size;
20

Archive Download this file



interactive