lguest: fix example launcher compilation for broken glibc headers.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 4 Jul 2013 01:52:58 +0000 (11:22 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 4 Jul 2013 01:55:07 +0000 (11:25 +0930)
commite6dc0418bcb96e3cccb80571f35934ed72e9c99a
tree18c261f3b26dae4d07f560c6bf712b130ee2f5ce
parent9b9cd8024a2882e896c65222aa421d461354e3f2
lguest: fix example launcher compilation for broken glibc headers.

Somehow a naked u16 slipped into the glibc headers on my Ubuntu machine
(i386 2.17-0ubuntu5), breaking compile:

In file included from lguest.c:46:0:
/usr/include/linux/virtio_net.h:188:2: error: unknown type name ‘u16’

We use the kernel-style types anyway, just define them before the includes.
Also remove the advice on adding missing headers: that no longer works.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
tools/lguest/Makefile
tools/lguest/lguest.c