Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Apr 2009 23:21:42 +0400
From:      Stanislav Sedov <stas@FreeBSD.org>
To:        Stanislav Sedov <stas@FreeBSD.org>
Cc:        src-committers@FreeBSD.ORG, svn-src-all@FreeBSD.ORG, Norikatsu Shigemura <nork@FreeBSD.ORG>, Stanislav Sedov <stas@FreeBSD.ORG>, svn-src-head@FreeBSD.ORG, David Schultz <das@FreeBSD.ORG>
Subject:   Re: svn commit: r190943 - head/include
Message-ID:  <20090412232142.1289985d.stas@FreeBSD.org>
In-Reply-To: <20090412114318.fd0d213d.stas@FreeBSD.org>
References:  <200904111657.n3BGvpsC092703@svn.freebsd.org> <20090411210702.ce5325b9.stas@FreeBSD.org> <20090412021841.673a200b.nork@FreeBSD.org> <20090412030054.GA54299@zim.MIT.EDU> <20090412114318.fd0d213d.stas@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, 12 Apr 2009 11:43:18 +0400
Stanislav Sedov <stas@FreeBSD.org> mentioned:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Sat, 11 Apr 2009 23:00:54 -0400
> David Schultz <das@FreeBSD.ORG> mentioned:
> 
> > On Sun, Apr 12, 2009, Norikatsu Shigemura wrote:
> > > On Sat, 11 Apr 2009 21:07:02 +0400
> > > Stanislav Sedov <stas@freebsd.org> wrote:
> > > > > Log:
> > > > >   GNU Pth has some fragile kludges that were broken by r189828.
> > > > >   I've discussed this with the Pth maintainer and no clear solution
> > > > >   has emerged on the ports side of things, so for now, hack around
> > > > >   the issue in signal.h.
> > > > Can't we just put a patch in ports tree itself? What meant under 'no
> > > > clean solution emerged'? I can prepare a patch, if needed.
> > > 
> > > 	I think so, too.  I have a quick hack patch.
> > 
> > As I mentioned to vd@ on 3/20, I'd prefer something like
> > that. Does your proposed patch also work for the ports that depend
> > on GNU Pth, some of which may depend on signal.h? 
> 
> Will the following do the trick?
> 
>  #if !(defined(__FreeBSD__) && __FreeBSD_version >= %%PTHREAD_CHANGE_VERSION%%)
>  # define pthread_kill(a, b)
>  # define pthread_sigmask(a, b, c)
>  # include <signal.h>
>  # undef pthread_kill
>  # undef pthread_sigmask
>  #endif
> 

Of course, I meant

  #if !(defined(__FreeBSD__) && __FreeBSD_version >= %%PTHREAD_CHANGE_VERSION%%)
  # define pthread_kill(a, b)
  # define pthread_sigmask(a, b, c)
  #endif
  #include <signal.h>
  #if !(defined(__FreeBSD__) && __FreeBSD_version >= %%PTHREAD_CHANGE_VERSION%%)
  # undef pthread_kill
  # undef pthread_sigmask
  #endif

- -- 
Stanislav Sedov
ST4096-RIPE
-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAkniP0oACgkQK/VZk+smlYGnLwCfTXaiKQcHUYtqF7ObGCLl4yqb
XMMAniNOBZznv4MvldusQtsNG96eZmBK
=HO6m
-----END PGP SIGNATURE-----

!DSPAM:49e23f46967001672211560!





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090412232142.1289985d.stas>