This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: libmudflap/mf-hooks2.c portability breakage
- From: Eyal Lebedinsky <eyal at eyal dot emu dot id dot au>
- To: Gerald Pfeifer <gerald at pfeifer dot com>
- Cc: gcc at gcc dot gnu dot org, "Frank Ch. Eigler" <fche at redhat dot com>
- Date: Tue, 29 Jul 2003 23:59:30 +1000
- Subject: Re: libmudflap/mf-hooks2.c portability breakage
- Organization: Eyal at Home
- References: <Pine.BSF.4.56.0307291422240.68102@acrux.dbai.tuwien.ac.at>
Gerald Pfeifer wrote:
>
> FreeBSD fails to bootstrap tree-ssa branch, because libmudflap/mf-hooks2.c
> contains
[trimmed]
This was expected, as mf-hooks2.c was only tested on Linux so far. Well,
at least my part (after /* EL start */). The set of #defines that
followes that comment will need to become system dependent, and
maybe even library version dependent. I assume the earlier portion
of this source file will also require such adjustments.
It is best, at some point soon, to add more feature macros and
set these all up-front. One such macro will specify if we want to
#define _POSIX_SOURCE. This is a cleaner solution for a generic
feature.
We should be able to use autoconf to set these too, but for now,
I think the posted patch looks reasonable.
--
Eyal Lebedinsky (eyal@eyal.emu.id.au) <http://samba.org/eyal/>