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