1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-08 16:46:22 +02:00

51769: fix compilation when HAVE_GETRUSAGE is not defined

Also silence compiler warning when HAVE_SETUPTERM is not defined.
This commit is contained in:
Oliver Kiddle 2023-05-21 03:36:21 +02:00
parent b41dd30c90
commit f80ad32c3f
3 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2023-05-21 Oliver Kiddle <opk@zsh.org>
* 51769: Src/jobs.c, Src/utils.c: fix compilation when
HAVE_GETRUSAGE is not defined
* Marlon Richert: 51761: Completion/Zsh/Type/_parameters:
Use zstyle verbose for _parameters descriptions

View File

@ -1032,7 +1032,7 @@ should_report_time(Job j)
return 1;
#else
{
clktck = get_clktck();
long clktck = get_clktck();
if ((j->procs->ti.ut + j->procs->ti.st) / clktck >= reporttime)
return 1;
}

View File

@ -380,11 +380,13 @@ zerrmsg(FILE *file, const char *fmt, va_list ap)
fflush(file);
}
#ifdef HAVE_SETUPTERM
/*
* Wrapper for setupterm() and del_curterm().
* These are called from terminfo.c and termcap.c.
*/
static int term_count; /* reference count of cur_term */
#endif
/**/
mod_export void