patch applied (ghc): Define _BSD_SOURCE in Stg.h

Simon Marlow marlowsd at gmail.com
Mon Sep 8 09:28:40 EDT 2008


Ian Lynagh wrote:
> Thu Sep  4 11:50:42 PDT 2008  Ian Lynagh <igloo at earth.li>
>   * Define _BSD_SOURCE in Stg.h
>   This means S_ISSOCK gets defined on Linux

This is highly dubious.  The reason we needed these things in the past was 
because when compiling via C, Stg.h is always included first, and there was 
no other place to put things like _BSD_SOURCE.  In GHC 6.10 it should never 
be necessary to use _BSD_SOURCE for via-C compilations, only for ordinary 
.c compilations, where it's possible to put the #define in the source file.

But perhaps I've misunderstood the problem.  Can we move _BSD_SOURCE to 
HsBase.h?

Cheers,
	Simon



More information about the Cvs-ghc mailing list