]> Git Repo - qemu.git/commitdiff
util: Move general qemu_getauxval to util/getauxval.c
authorFam Zheng <[email protected]>
Wed, 3 Sep 2014 03:44:55 +0000 (11:44 +0800)
committerPaolo Bonzini <[email protected]>
Tue, 9 Sep 2014 11:13:05 +0000 (13:13 +0200)
So that we won't have an empty getauxval.o which is disliked by ranlib.

Reported-by: Peter Maydell <[email protected]>
Tested-by: Peter Maydell <[email protected]>
Signed-off-by: Fam Zheng <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
include/qemu/osdep.h
util/getauxval.c

index 9dd43fc2db7cecb194475a2643d6177acb57feb6..1565404f7e7502cd40434a2960965bfa7c214358 100644 (file)
@@ -246,11 +246,7 @@ char *qemu_get_exec_dir(void);
  * Search the auxiliary vector for @type, returning the value
  * or 0 if @type is not present.
  */
-#if defined(CONFIG_GETAUXVAL) || defined(__linux__)
 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);
 
index 25f48e5456baa159359d9eed50061cb8ba34629b..1732ace2b178fb147abab3ddceb7254f2cff04c6 100644 (file)
@@ -98,4 +98,12 @@ unsigned long qemu_getauxval(unsigned long type)
 
     return 0;
 }
+
+#else
+
+unsigned long qemu_getauxval(unsigned long type)
+{
+    return 0;
+}
+
 #endif
This page took 0.034272 seconds and 4 git commands to generate.