diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-02-16 16:39:51 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-02-16 16:39:51 +0100 |
commit | 5d54a045989599468b7a971fc354b0cba4e2b09d (patch) | |
tree | 9fb25109f0c969af5b01e904e2bc9a4cf88e3375 | |
parent | 6aa2cd4be287f35f95f35c2cec6d5a24f53c4d3c (diff) | |
download | vim-git-5d54a045989599468b7a971fc354b0cba4e2b09d.tar.gz |
patch 7.4.1335v7.4.1335
Problem: Can't build on MS-Windows with +job but without +channel. (Cesar
Romani)
Solution: Add #ifdefs. (Yasuhiro Matsumoto)
-rw-r--r-- | src/os_win32.c | 4 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/os_win32.c b/src/os_win32.c index 0c252ac8d..4fd117f9e 100644 --- a/src/os_win32.c +++ b/src/os_win32.c @@ -5071,6 +5071,7 @@ mch_start_job(char *cmd, job_T *job) si.dwFlags |= STARTF_USESHOWWINDOW; si.wShowWindow = SW_HIDE; +# ifdef FEAT_CHANNEL saAttr.nLength = sizeof(SECURITY_ATTRIBUTES); saAttr.bInheritHandle = TRUE; saAttr.lpSecurityDescriptor = NULL; @@ -5085,6 +5086,7 @@ mch_start_job(char *cmd, job_T *job) si.hStdInput = ifd[0]; si.hStdOutput = ofd[1]; si.hStdError = efd[1]; +# endif if (!vim_create_process(cmd, TRUE, CREATE_SUSPENDED | @@ -5111,11 +5113,11 @@ mch_start_job(char *cmd, job_T *job) job->jv_job_object = jo; job->jv_status = JOB_STARTED; +# ifdef FEAT_CHANNEL CloseHandle(ifd[0]); CloseHandle(ofd[1]); CloseHandle(efd[1]); -# ifdef FEAT_CHANNEL job->jv_channel = channel; channel_set_pipes(channel, (sock_T)ifd[1], (sock_T)ofd[0], (sock_T)efd[0]); channel_set_job(channel, job); diff --git a/src/version.c b/src/version.c index 481701ac3..15d40bb65 100644 --- a/src/version.c +++ b/src/version.c @@ -748,6 +748,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1335, +/**/ 1334, /**/ 1333, |