aboutsummaryrefslogtreecommitdiff
path: root/util/getauxval.c
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2014-09-03 11:44:55 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2014-09-09 13:13:05 +0200
commitf6e08302989ad215977faba96fbf6028e9b3c87a (patch)
tree4e1f40df2d95170801c689884d7aa872894fa53b /util/getauxval.c
parentddbc41de380c24de823aa55cd46237be84ee0498 (diff)
downloadqemu-f6e08302989ad215977faba96fbf6028e9b3c87a.zip
qemu-f6e08302989ad215977faba96fbf6028e9b3c87a.tar.gz
qemu-f6e08302989ad215977faba96fbf6028e9b3c87a.tar.bz2
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>
Diffstat (limited to 'util/getauxval.c')
-rw-r--r--util/getauxval.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/util/getauxval.c b/util/getauxval.c
index 25f48e5..1732ace 100644
--- a/util/getauxval.c
+++ b/util/getauxval.c
@@ -98,4 +98,12 @@ unsigned long qemu_getauxval(unsigned long type)
return 0;
}
+
+#else
+
+unsigned long qemu_getauxval(unsigned long type)
+{
+ return 0;
+}
+
#endif