Skip to content

Commit 2fcf668

Browse files
committed
patch 8.0.0445: getpgid is not supported on all systems
Problem: Getpgid is not supported on all systems. Solution: Add a configure check.
1 parent a95ab32 commit 2fcf668

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

src/auto/configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12022,7 +12022,7 @@ fi
1202212022
for ac_func in fchdir fchown fsync getcwd getpseudotty \
1202312023
getpwent getpwnam getpwuid getrlimit gettimeofday getwd lstat \
1202412024
memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
12025-
setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
12025+
getpgid setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
1202612026
sigprocmask sigvec strcasecmp strerror strftime stricmp strncasecmp \
1202712027
strnicmp strpbrk strtol tgetent towlower towupper iswupper \
1202812028
usleep utime utimes

src/config.h.in

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,9 @@
158158
#undef HAVE_FCHOWN
159159
#undef HAVE_FSEEKO
160160
#undef HAVE_FSYNC
161+
#undef HAVE_FLOAT_FUNCS
161162
#undef HAVE_GETCWD
163+
#undef HAVE_GETPGID
162164
#undef HAVE_GETPSEUDOTTY
163165
#undef HAVE_GETPWENT
164166
#undef HAVE_GETPWNAM
@@ -167,13 +169,12 @@
167169
#undef HAVE_GETTIMEOFDAY
168170
#undef HAVE_GETWD
169171
#undef HAVE_ICONV
170-
#undef HAVE_NL_LANGINFO_CODESET
171172
#undef HAVE_LSTAT
172173
#undef HAVE_MEMSET
173174
#undef HAVE_MKDTEMP
174175
#undef HAVE_NANOSLEEP
176+
#undef HAVE_NL_LANGINFO_CODESET
175177
#undef HAVE_OPENDIR
176-
#undef HAVE_FLOAT_FUNCS
177178
#undef HAVE_PUTENV
178179
#undef HAVE_QSORT
179180
#undef HAVE_READLINK

src/configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3609,7 +3609,7 @@ dnl Can only be used for functions that do not require any include.
36093609
AC_CHECK_FUNCS(fchdir fchown fsync getcwd getpseudotty \
36103610
getpwent getpwnam getpwuid getrlimit gettimeofday getwd lstat \
36113611
memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
3612-
setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
3612+
getpgid setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
36133613
sigprocmask sigvec strcasecmp strerror strftime stricmp strncasecmp \
36143614
strnicmp strpbrk strtol tgetent towlower towupper iswupper \
36153615
usleep utime utimes)

src/os_unix.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3081,7 +3081,7 @@ executable_file(char_u *name)
30813081
}
30823082

30833083
/*
3084-
* Return 1 if "name" can be found in $PATH and executed, 0 if not.
3084+
* Return TRUE if "name" can be found in $PATH and executed, FALSE if not.
30853085
* If "use_path" is FALSE only check if "name" is executable.
30863086
* Return -1 if unknown.
30873087
*/
@@ -5429,8 +5429,10 @@ mch_stop_job(job_T *job, char_u *how)
54295429

54305430
/* TODO: have an option to only kill the process, not the group? */
54315431
job_pid = job->jv_pid;
5432+
#ifdef HAVE_GETPGID
54325433
if (job_pid == getpgid(job_pid))
54335434
job_pid = -job_pid;
5435+
#endif
54345436

54355437
kill(job_pid, sig);
54365438

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
445,
767769
/**/
768770
444,
769771
/**/

0 commit comments

Comments
 (0)