Bug#522773: Fwd: [issues] glibc uses '__unused' as identifier, which is traditionally used by BSD as macro
Hi package maintainers,
maybe you can do such a thing during package installation?
This would tremendously help porting software (liberal in
what one accepts), such as NetBSD® makefs (ITP: #538171 –
for now I worked around the issue in it).
---------- Forwarded message ----------
From: Thorsten Glaser <tg@mirbsd.de>
Message-ID: <Pine.BSM.4.64L.0905071822510.15553@herc.mirbsd.org>
To: issues@eglibc.org
Date: Thu, 7 May 2009 18:25:26 +0000 (UTC)
Subject: Re: [issues] glibc uses '__unused' as identifier,
which is traditionally used by BSD as macro
Joseph S. Myers dixit:
>There is cost associated with divergence between FSF glibc and EGLIBC that
>comes into play every merge
I do have a suggestion. Maybe we can get into an agreement still…
How about you use the following sed expression on installation?
This way you’d only have to change the Makefile.in in question.
s/[[:<:]]__unused[[:>:]]/&_/g
I do not know if your sed(1) does [[:<:]] and [[:>:]], ours does,
see http://www.mirbsd.org/man7/re_format – if not, something si-
milar would probably be possible.
As __unused* should never be used from userland, this would work
I think.
Comments?
//mirabilos
--
> Hi, does anyone sell openbsd stickers by themselves and not packaged
> with other products?
No, the only way I've seen them sold is for $40 with a free OpenBSD CD.
-- Haroon Khalid and Steve Shockley in gmane.os.openbsd.misc
Reply to: