On 29/11/12 17:35, Takashi Iwai wrote:
At Thu, 29 Nov 2012 16:01:25 +0000, Liam Girdwood wrote:
On 29/11/12 15:51, Liam Girdwood wrote:
In fact adding the old include path at the end works, but is probably an interim fix until the uapi work is completed.
gcc uapi-test.c -I ~/source/linux.git/include/uapi -D__EXPORTED_HEADERS__ -I /home/lrg/source/linux.git/include/
Well, actually the content of uapi/sound/asound.h won't be changed.
Sorry, I was meaning the other uapi includes here. Like compiler.h
Looking at this issue more closely, I found that glibc package also provides the copy of linux kernel headers as well, but they are stripped. And the stripped form is almost what we have now in include/uapi/*. The difference is that all ifdef KERNEL will be stripped, thus the check of non-kernel access in linux/types.h is also stripped.
That being said, once when kernel uapi things get merged to glibc, everything will be fine.... Well, I hope.
Hehe, I hope too.
Thanks
Liam