util/cacheinfo: Add missing include for ppc linux
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Tue, 11 Jul 2017 01:55:24 +0000 (22:55 -0300)
committerRichard Henderson <rth@twiddle.net>
Wed, 19 Jul 2017 21:45:15 +0000 (14:45 -0700)
This include was forgotten when splitting cacheinfo.c out of
tcg/ppc/tcg-target.inc.c (see commit b255b2c8).

For a Centos7 host, the include path

<signal.h>
  <bits/sigcontext.h>
            <asm/sigcontext.h>
              <asm/elf.h>
        <asm/auxvec.h>

implicitly pulls in the desired AT_* defines.
Not so for Debian Jessie.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20170711015524.22936-1-f4bug@amsat.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
util/cacheinfo.c

index 6253049533e8557e7592252126e135299035216b..593940f27b5ec27259f31da73c0cc215263dcafe 100644 (file)
@@ -129,6 +129,7 @@ static void arch_cache_info(int *isize, int *dsize)
 }
 
 #elif defined(_ARCH_PPC) && defined(__linux__)
+# include "elf.h"
 
 static void arch_cache_info(int *isize, int *dsize)
 {