summaryrefslogtreecommitdiff
path: root/lang/guile/patches/patch-am
diff options
context:
space:
mode:
Diffstat (limited to 'lang/guile/patches/patch-am')
-rw-r--r--lang/guile/patches/patch-am26
1 files changed, 26 insertions, 0 deletions
diff --git a/lang/guile/patches/patch-am b/lang/guile/patches/patch-am
new file mode 100644
index 00000000000..62647744e41
--- /dev/null
+++ b/lang/guile/patches/patch-am
@@ -0,0 +1,26 @@
+$NetBSD: patch-am,v 1.5 2009/04/07 10:53:07 drochner Exp $
+
+--- configure.orig 2008-12-08 18:49:13.000000000 +0100
++++ configure
+@@ -34249,7 +34249,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+
+-for ac_func in pthread_attr_getstack pthread_getattr_np pthread_get_stackaddr_np pthread_sigmask
++for ac_func in pthread_attr_getstack pthread_getattr_np pthread_get_stackaddr_np pthread_sigmask pthread_attr_get_np
+ do
+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+ { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
+@@ -34610,7 +34610,12 @@ int main ()
+ void *start, *end;
+ size_t size;
+
++#if HAVE_PTHREAD_ATTR_GET_NP
++ pthread_attr_init(&attr);
++ pthread_attr_get_np(pthread_self (), &attr);
++#else
+ pthread_getattr_np (pthread_self (), &attr);
++#endif
+ pthread_attr_getstack (&attr, &start, &size);
+ end = (char *)start + size;
+