--- nss-3.43/nss/lib/freebl/blinit.c.orig	2019-03-15 20:25:08.000000000 -0400
+++ nss-3.43/nss/lib/freebl/blinit.c	2019-06-07 11:20:24.955978084 -0400
@@ -97,6 +97,7 @@ CheckX86CPUSupport()
 #define __has_include(x) 0
 #endif
 #if (__has_include(<sys/auxv.h>) || defined(__linux__)) && \
+    !defined(__UCLIBC__) && \
     defined(__GNUC__) && __GNUC__ >= 2 && defined(__ELF__)
 #include <sys/auxv.h>
 extern unsigned long getauxval(unsigned long type) __attribute__((weak));
diff -Naur nss-3.88.1.orig/nss/lib/freebl/stubs.c nss-3.88.1/nss/lib/freebl/stubs.c
--- nss-3.88.1.orig/nss/lib/freebl/stubs.c	2023-02-10 02:39:20.000000000 +0530
+++ nss-3.88.1/nss/lib/freebl/stubs.c	2023-03-01 14:49:24.701594779 +0530
@@ -39,6 +39,10 @@
 #include <assert.h>
 #include <private/pprio.h>
 
+#ifdef __UCLIBC__
+#define secure_getenv getenv
+#endif
+
 /* Android API < 21 doesn't define RTLD_NOLOAD */
 #ifndef RTLD_NOLOAD
 #define RTLD_NOLOAD 0
