e4d72e
diff -up nss/lib/sysinit/nsssysinit.c.sysinit-getenv nss/lib/sysinit/nsssysinit.c
e4d72e
--- nss/lib/sysinit/nsssysinit.c.sysinit-getenv	2019-04-26 12:08:48.155862312 +0200
e4d72e
+++ nss/lib/sysinit/nsssysinit.c	2019-04-26 12:09:13.228344780 +0200
e4d72e
@@ -1,6 +1,10 @@
a09104
 /* This Source Code Form is subject to the terms of the Mozilla Public
a09104
  * License, v. 2.0. If a copy of the MPL was not distributed with this
a09104
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
a09104
+
a09104
+#define _GNU_SOURCE 1
a09104
+#include <stdlib.h>
a09104
+
a09104
 #include "seccomon.h"
a09104
 #include "prio.h"
a09104
 #include "prprf.h"
e4d72e
@@ -41,7 +45,7 @@ testdir(char *dir)
a09104
 static char *
a09104
 getUserDB(void)
a09104
 {
a09104
-    char *userdir = PR_GetEnvSecure("HOME");
a09104
+    char *userdir = secure_getenv("HOME");
a09104
     char *nssdir = NULL;
a09104
 
a09104
     if (userdir == NULL) {
e4d72e
@@ -95,7 +99,7 @@ userCanModifySystemDB()
a09104
 static PRBool
a09104
 getFIPSEnv(void)
a09104
 {
a09104
-    char *fipsEnv = PR_GetEnvSecure("NSS_FIPS");
a09104
+    char *fipsEnv = secure_getenv("NSS_FIPS");
a09104
     if (!fipsEnv) {
a09104
         return PR_FALSE;
a09104
     }