[riot-notifications] [RIOT-OS/RIOT] boards/native: fix overriden INCLUDES leading to build failure (#11572)
notifications at github.com
Tue May 28 10:21:26 CEST 2019
> > And indeed, the modules using NATIVEINCLUDES cannot use any riot modules includes. It is on purpose.
> Can you explain this a bit more ?
The goal of `NATIVEINCLUDES`, as I understood it, is to handle conflicts between `RIOT` headers and the system headers which may contain different values.
(I know about POSIX for example)
POSIX is only an API and not an ABI, so "names" are the same but not the values for the enums/defines and even differ between linux/mac.
For `native` our `POSIX` headers do not match with the ones from the system.
Using `INCLUDES` directories makes the system use `RIOT` posix values, which are not the one for the host system. So not working when communication with the system.
Every modules that need to communicate with the Linux/mac underlying system, must use the system headers, not the ones we provide if they can be different.
Currently who should use `NATIVEINCLUDES` is not that clear and maybe too general as here `board` for `native` does not interact directly with Host system.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications