add back x32 bits/socket.h defining time-related socket options
[musl] / src / misc / getauxval.c
index 5ac8b3d..57f21ee 100644 (file)
@@ -2,11 +2,14 @@
 #include <errno.h>
 #include "libc.h"
 
-unsigned long getauxval(unsigned long item)
+unsigned long __getauxval(unsigned long item)
 {
        size_t *auxv = libc.auxv;
+       if (item == AT_SECURE) return libc.secure;
        for (; *auxv; auxv+=2)
                if (*auxv==item) return auxv[1];
        errno = ENOENT;
        return 0;
 }
+
+weak_alias(__getauxval, getauxval);