Mercurial > vim
comparison src/os_unix.c @ 20205:83e196d484eb v8.2.0658
patch 8.2.0658: HP-UX build fails when setenv() is not defined
Commit: https://github.com/vim/vim/commit/affc8fd2cda77fbd47df2594da417a9f9a9bb9b6
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Apr 28 21:58:29 2020 +0200
patch 8.2.0658: HP-UX build fails when setenv() is not defined
Problem: HP-UX build fails when setenv() is not defined.
Solution: Change "colors" to "t_colors". (John Marriott)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 28 Apr 2020 22:00:04 +0200 |
parents | 0ab9d7469ce7 |
children | a7dbf32b5cc0 |
comparison
equal
deleted
inserted
replaced
20204:d916e6c0aeb9 | 20205:83e196d484eb |
---|---|
4194 vim_snprintf(envbuf_Lines, sizeof(envbuf_Lines), "LINES=%ld", rows); | 4194 vim_snprintf(envbuf_Lines, sizeof(envbuf_Lines), "LINES=%ld", rows); |
4195 putenv(envbuf_Lines); | 4195 putenv(envbuf_Lines); |
4196 vim_snprintf(envbuf_Columns, sizeof(envbuf_Columns), | 4196 vim_snprintf(envbuf_Columns, sizeof(envbuf_Columns), |
4197 "COLUMNS=%ld", columns); | 4197 "COLUMNS=%ld", columns); |
4198 putenv(envbuf_Columns); | 4198 putenv(envbuf_Columns); |
4199 vim_snprintf(envbuf_Colors, sizeof(envbuf_Colors), "COLORS=%ld", colors); | 4199 vim_snprintf(envbuf_Colors, sizeof(envbuf_Colors), "COLORS=%ld", t_colors); |
4200 putenv(envbuf_Colors); | 4200 putenv(envbuf_Colors); |
4201 # ifdef FEAT_TERMINAL | 4201 # ifdef FEAT_TERMINAL |
4202 if (is_terminal) | 4202 if (is_terminal) |
4203 { | 4203 { |
4204 vim_snprintf(envbuf_Version, sizeof(envbuf_Version), | 4204 vim_snprintf(envbuf_Version, sizeof(envbuf_Version), |