diff options
Diffstat (limited to 'libc/bionic/getauxval.cpp')
-rw-r--r-- | libc/bionic/getauxval.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/bionic/getauxval.cpp b/libc/bionic/getauxval.cpp index bc41824..22922b9 100644 --- a/libc/bionic/getauxval.cpp +++ b/libc/bionic/getauxval.cpp @@ -31,6 +31,7 @@ #include <sys/auxv.h> #include <private/bionic_auxv.h> #include <elf.h> +#include <errno.h> __LIBC_HIDDEN__ ElfW(auxv_t)* __libc_auxv = NULL; @@ -40,5 +41,6 @@ extern "C" unsigned long int getauxval(unsigned long int type) { return v->a_un.a_val; } } + errno = ENOENT; return 0; } |