Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/tools/compat



On Mon, Jun 21, 2004 at 11:14:42PM +0000, Christos Zoulas wrote:
> 
> Module Name:  src
> Committed By: christos
> Date:         Mon Jun 21 23:14:42 UTC 2004
> 
> Modified Files:
>       src/tools/compat: compat_defs.h
> 
> Log Message:
> - Wrap around #if !_NETBSD_SOURCE the definitions of u_{long,int,short,char}
> - Protect dirfd() macro so that we don't re-define it.
> 
> These changes make my build proceed further.
> 
> The problem is that automatically generated files, might include system
> files before they include anything else (for example our yacc skeleton
> includes <stdlib.h> before it does anything else). This foils the scheme
> of defining _POSIX_SOURCE and friends so that _NETBSD_SOURCE does not
> get defined; in fact, we include many files with _NETBSD_SOURCE defined,
> enough to cause confusion in compat_defs.h which tries to re-define things.
> 

Umm....this is why bsd.hostprog.mk was fixed to include compat before the
skeleton.

There is no need for any of this on non-netbsd or netbsd platforms after my
last commit.

James



Home | Main Index | Thread Index | Old Index