summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2005-09-22 12:05:39 +0000
committerrillig <rillig@pkgsrc.org>2005-09-22 12:05:39 +0000
commitaca4c430bb43c0c7e02d25038f6121cc40ddc69e (patch)
treeed641db6370c333a4716bd454b499f7f77317888 /devel
parent5ed3de4dcc3363b8b25ec2a7d117cb212663a69d (diff)
downloadpkgsrc-aca4c430bb43c0c7e02d25038f6121cc40ddc69e.tar.gz
ISO C90 does not allow declarations after code.
Diffstat (limited to 'devel')
-rw-r--r--devel/lwp/distinfo3
-rw-r--r--devel/lwp/patches/patch-aa28
2 files changed, 30 insertions, 1 deletions
diff --git a/devel/lwp/distinfo b/devel/lwp/distinfo
index dbcbd200b4f..6a385928807 100644
--- a/devel/lwp/distinfo
+++ b/devel/lwp/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.10 2005/08/15 01:14:05 xtraeme Exp $
+$NetBSD: distinfo,v 1.11 2005/09/22 12:05:39 rillig Exp $
SHA1 (lwp-2.0.tar.gz) = 4188f5df42a9f879f67c9294ebf9bf59056a0e25
RMD160 (lwp-2.0.tar.gz) = cf42e3324ed94fe67ae817281763eb1f2f475935
Size (lwp-2.0.tar.gz) = 362141 bytes
+SHA1 (patch-aa) = 02ff9a57c996c67b722987d4dde3899056341df5
diff --git a/devel/lwp/patches/patch-aa b/devel/lwp/patches/patch-aa
new file mode 100644
index 00000000000..d2ac9bb983b
--- /dev/null
+++ b/devel/lwp/patches/patch-aa
@@ -0,0 +1,28 @@
+$NetBSD: patch-aa,v 1.5 2005/09/22 12:05:39 rillig Exp $
+
+ISO C90 does not allow declarations after code.
+
+--- src/lwp_ucontext.c.orig Thu Mar 3 19:53:51 2005
++++ src/lwp_ucontext.c Thu Sep 22 14:02:14 2005
+@@ -109,6 +109,10 @@ void makecontext(ucontext_t *ucp, void (
+ {
+ va_list ap;
+ char *stack = ucp->uc_stack.ss_sp;
++ struct sigaction action, oldaction;
++ sigset_t sigs, oldsigs;
++ stack_t oldstack;
++
+ assert(stack != NULL);
+
+ child = ucp;
+@@ -132,10 +136,6 @@ void makecontext(ucontext_t *ucp, void (
+ savecontext(_thread, &parent, stack);
+
+ #else /* HAVE_SIGALTSTACK */
+- struct sigaction action, oldaction;
+- sigset_t sigs, oldsigs;
+- stack_t oldstack;
+-
+ action.sa_handler = (void(*)(int))_thread;
+ action.sa_flags = SA_ONSTACK;
+ sigemptyset(&action.sa_mask);