Am 13.02.2012 15:42, schrieb Alex Barcelo: > This file is based in both coroutine-ucontext.c and > pth_mctx.c (from the GNU Portable Threads library). > > The mechanism used to change stacks is the sigaltstack > function (variant 2 of the pth library). > > Signed-off-by: Alex Barcelo <abarc...@ac.upc.edu> > --- > coroutine-sigaltstack.c | 337 > +++++++++++++++++++++++++++++++++++++++++++++++ > 1 files changed, 337 insertions(+), 0 deletions(-) > create mode 100644 coroutine-sigaltstack.c > > diff --git a/coroutine-sigaltstack.c b/coroutine-sigaltstack.c > new file mode 100644 > index 0000000..1d4f26d > --- /dev/null > +++ b/coroutine-sigaltstack.c > @@ -0,0 +1,337 @@ > +/* > + * sigaltstack coroutine initialization code > + * > + * Copyright (C) 2006 Anthony Liguori <anth...@codemonkey.ws> > + * Copyright (C) 2011 Kevin Wolf <kw...@redhat.com> > + * Copyright (C) 2012 Alex Barcelo <abarc...@ac.upc.edu> > + * > + * This library is free software; you can redistribute it and/or > + * modify it under the terms of the GNU Lesser General Public > + * License as published by the Free Software Foundation; either > + * version 2.0 of the License, or (at your option) any later version. > + * > + * This library is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU > + * Lesser General Public License for more details. > + * > + * You should have received a copy of the GNU Lesser General Public > + * License along with this library; if not, see > <http://www.gnu.org/licenses/>. > + */ > + > +/* > +** This file is partly based on pth_mctx.c, from the GNU Portable Threads > +** Copyright (c) 1999-2006 Ralf S. Engelschall <r...@engelschall.com> > +** Same license (version 2.1 or later) > +*/
You should (need to?) use version 2.1 or later above then, too. You can then simply move this snippet up and drop the "Same license ..." line. Andreas -- SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg