File getenv.patch of Package pcre2

diff -urN a/src/sljit/sljitProtExecAllocator.c b/src/sljit/sljitProtExecAllocator.c
--- a/src/sljit/sljitProtExecAllocator.c	2017-02-15 18:24:58.000000000 +0100
+++ b/src/sljit/sljitProtExecAllocator.c	2023-12-11 18:37:34.391635767 +0100
@@ -97,7 +97,7 @@
 #endif
 
 int mkostemp(char *template, int flags);
-char *secure_getenv(const char *name);
+char *getenv(const char *name);
 
 static SLJIT_INLINE int create_tempfile(void)
 {
@@ -124,7 +124,7 @@
 	tmp_name_len = 4;
 #endif
 
-	dir = secure_getenv("TMPDIR");
+	dir = getenv("TMPDIR");
 	if (dir) {
 		len = strlen(dir);
 		if (len > 0 && len < sizeof(tmp_name)) {
openSUSE Build Service is sponsored by