NetBSD-Users archive

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

Re: NetBSD and _POSIX_C_SOURCE



On Sun, 05 May 2019 05:56:33 +0700
Robert Elz <kre%munnari.OZ.AU@localhost> wrote:

>     Date:        Sat, 4 May 2019 19:47:11 +0100
>     From:        Sad Clouds <cryintothebluesky%gmail.com@localhost>
>     Message-ID:
> <20190504194711.c8c8895562bb59f6119a5798%googlemail.com@localhost>
> 
> 
>   | What I'm trying to avoid is setting _NETBSD_SOURCE and getting
>   | some "improved" NetBSD types/functions which directly conflict
>   | with POSIX. 
> 
> Put the OS specific code in one file/OS, compile the rest with
> _POSIX_C_SOURCE set, and that one file with whatever is appropriate
> on each system to get its specific extensions.
> 
> kre
> 

Maybe, but this ends up fragmenting bits of logic across multiple tiny
files, which I would rather avoid. I may need to do this for specific
cases if I can't find another way round.



Home | Main Index | Thread Index | Old Index