mirror of https://github.com/xqemu/xqemu.git
util: Move general qemu_getauxval to util/getauxval.c
So that we won't have an empty getauxval.o which is disliked by ranlib. Reported-by: Peter Maydell <peter.maydell@linaro.org> Tested-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Fam Zheng <famz@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
ddbc41de38
commit
f6e0830298
|
@ -246,11 +246,7 @@ char *qemu_get_exec_dir(void);
|
||||||
* Search the auxiliary vector for @type, returning the value
|
* Search the auxiliary vector for @type, returning the value
|
||||||
* or 0 if @type is not present.
|
* or 0 if @type is not present.
|
||||||
*/
|
*/
|
||||||
#if defined(CONFIG_GETAUXVAL) || defined(__linux__)
|
|
||||||
unsigned long qemu_getauxval(unsigned long type);
|
unsigned long qemu_getauxval(unsigned long type);
|
||||||
#else
|
|
||||||
static inline unsigned long qemu_getauxval(unsigned long type) { return 0; }
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void qemu_set_tty_echo(int fd, bool echo);
|
void qemu_set_tty_echo(int fd, bool echo);
|
||||||
|
|
||||||
|
|
|
@ -98,4 +98,12 @@ unsigned long qemu_getauxval(unsigned long type)
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
unsigned long qemu_getauxval(unsigned long type)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue