This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa] [libmudflap] Fix build failure for Darwin


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]