On 21 Jun 2017, at 02:15, Ryan Stone <ryst...@gmail.com> wrote: > > On Mon, Jun 19, 2017 at 2:57 AM, Dimitry Andric <d...@freebsd.org> wrote: > >> Solution B is problematic because arm_neon.h uses stdint.h types >> extensively. >> > > If I manually modify the arm_neon.h file to instead say this, the problem > is avoided and the kernel builds: > > #ifdef _KERNEL > #include <sys/types.h> > #else > #include <stdint.h> > #endif > > Do you think that the llvm devs would be willing to take a change to > NeonEmitter that does this on FreeBSD? > > This may not be a complete solution, though, as googling seems to indicate > that gcc also provides a arm_neon.h and it also #includes <stdint.h>
Indeed. It seems this header is not really designed to be included from kernel space. It is probably easiest to provide a kernel wrapper for stdint.h, maybe even just for arm. -Dimitry
signature.asc
Description: Message signed with OpenPGP