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:
parent
b41dd30c90
commit
f80ad32c3f
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue