On Thu, Feb 11, 2016 at 04:46:31PM -0800, Andy Lutomirski wrote:
> Too tangled. Adding:
>
> #include "../../../../arch/x86/include/asm/desc_defs.h"
Yeah, that's fine. We do those crazy include paths in other tools too:
$ grep -ErIn '(\.\.\/){2,}' tools/
tools/usb/ffs-test.c:42:#include "../../include/uapi/linux/usb/functionfs.h"
tools/perf/bench/mem-memset-x86-64-asm.S:4:#include
"../../../arch/x86/lib/memset_64.S"
tools/perf/bench/mem-memcpy-x86-64-asm.S:4:#include
"../../../arch/x86/lib/memcpy_64.S"
tools/perf/util/include/asm/byteorder.h:2:#include
"../../../../include/uapi/linux/swab.h"
tools/perf/util/include/linux/const.h:1:#include
"../../../../include/uapi/linux/const.h"
...
> Complains that u16 isn't a type. Trying to include types.h doesn't
> work well either.
Add
typedef unsigned short u16;
before the include maybe?
--
Regards/Gruss,
Boris.
ECO tip #101: Trim your mails when you reply.