This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] [libmudflap] Fix build failure for Darwin
- From: Gerald Pfeifer <gerald at pfeifer dot com>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 1 Aug 2003 12:26:54 +0200 (CEST)
- Subject: Re: [tree-ssa] [libmudflap] Fix build failure for Darwin
- References: <2BC3A727-C3AC-11D7-AC2E-000393A6D2F2@physics.uc.edu>
On Thu, 31 Jul 2003, Andrew Pinski wrote:
> This fixes Darwin by adding a typedef for socklen_t which really should
> be done by configure but I do not have the patience for autoconf and
> doing the same thing for _POSIX_SOURCE as is done for FreeBSD.
I suppose this is fine for _POSIX_SOURCE (even if it's also not ideal
for FreeBSD where this problem has been solved for current development
versions), but...
> Index: mf-hooks1.c
> ===================================================================
> +/* Add definition of socklen_t for Darwin */
> +#if defined(__APPLE__)
> +typedef int socklen_t;
> +#endif
...this one really should be autoconf-ed, as not to break possible later
versions of Darwin (and also for the benefit of other systems).
Gerald