]> granicus.if.org Git - vim/commitdiff
patch 8.0.1841: HP-UX does not have setenv() v8.0.1841
authorBram Moolenaar <Bram@vim.org>
Mon, 14 May 2018 20:58:34 +0000 (22:58 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 14 May 2018 20:58:34 +0000 (22:58 +0200)
Problem:    HP-UX does not have setenv().
Solution:   Use vim_setenv(). (John Marriott)

src/misc1.c
src/version.c

index 1ab55f0862823f1e517162fa7948d3c09a5a58fd..76f50258ad962b265791be4899362fb6d3d7dad4 100644 (file)
@@ -4485,7 +4485,7 @@ vim_unsetenv(char_u *var)
 #ifdef HAVE_UNSETENV
     unsetenv((char *)var);
 #else
-    mch_setenv((char *)var, "", 0);
+    vim_setenv(var, (char_u *)"");
 #endif
 }
 
index 34b0113f3f4a1c61b9cb79e45e9235d63aeb98c8..67a6acfe71ee2d8a082d733876416c813cd2b5ba 100644 (file)
@@ -761,6 +761,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1841,
 /**/
     1840,
 /**/