diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2022-10-07 23:27:41 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2022-10-07 23:27:41 -0500 |
commit | 9dbbddcb9813b84b48057a1756eacede6e48cdc7 (patch) | |
tree | 5081e2f31c2439e14a088b6afa5719d3852fd47d /libgcompat | |
parent | fbdd06c3aba7cd559ca6307d91ad08611e2da805 (diff) | |
download | gcompat-9dbbddcb9813b84b48057a1756eacede6e48cdc7.tar.gz gcompat-9dbbddcb9813b84b48057a1756eacede6e48cdc7.tar.bz2 gcompat-9dbbddcb9813b84b48057a1756eacede6e48cdc7.tar.xz gcompat-9dbbddcb9813b84b48057a1756eacede6e48cdc7.zip |
sysctl: Add __getauxval alias
Used by GraalVM Java.
Diffstat (limited to 'libgcompat')
-rw-r--r-- | libgcompat/sysctl.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libgcompat/sysctl.c b/libgcompat/sysctl.c index e7218c1..14c596c 100644 --- a/libgcompat/sysctl.c +++ b/libgcompat/sysctl.c @@ -1,5 +1,13 @@ +#include <sys/auxv.h> /* getauxval */ #include <sys/syscall.h> -#include <unistd.h> /* size_t */ +#include <unistd.h> /* size_t */ + + +unsigned long __getauxval(unsigned long type) +{ + return getauxval(type); +} + #ifdef SYS__sysctl |