]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools, bios: Don't include glibc headers
authorPekka Enberg <penberg@kernel.org>
Sun, 23 Oct 2011 07:03:19 +0000 (10:03 +0300)
committerPekka Enberg <penberg@kernel.org>
Sun, 23 Oct 2011 13:03:37 +0000 (16:03 +0300)
commita678aa7ae3c4fc76a10896ac913267f1ea6c9c1f
tree60a2fee4990b813fbdfd26b45c5b2bb26e367286
parenta73770f27686e48d5364ca91c7f5e32ef5cadab1
kvm tools, bios: Don't include glibc headers

We should not include glibc headers from BIOS code which can't rely on glibc at
runtime.

This patch fixes the following build breakage on 64-bit:

    CC       bios/e820.o
  In file included from /usr/include/features.h:387:0,
                   from /usr/include/unistd.h:26,
                   from include/kvm/util.h:12,
                   from bios/e820.c:5:
  /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory compilation terminated.
  make: *** [bios/bios.bin.elf] Error 1

when built without the 'glibc-devel.i686' package on Fedora, for example.

Cc: Asias He <asias.hejun@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Sasha Levin <levinsasha928@gmail.com>
Acked-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/README
tools/kvm/bios/e820.c
tools/kvm/bios/int10.c