On Sun, 05 May 2019 05:56:33 +0700
Robert Elz <[email protected]> wrote:

>     Date:        Sat, 4 May 2019 19:47:11 +0100
>     From:        Sad Clouds <[email protected]>
>     Message-ID:
> <[email protected]>
> 
> 
>   | 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.

Reply via email to