From f80ad32c3f4e6239d9d6853d14ff36e28154f075 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Sun, 21 May 2023 03:36:21 +0200 Subject: 51769: fix compilation when HAVE_GETRUSAGE is not defined Also silence compiler warning when HAVE_SETUPTERM is not defined. --- Src/utils.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Src/utils.c') diff --git a/Src/utils.c b/Src/utils.c index 14ff0ed47..f13e3a79d 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -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 -- cgit v1.2.3