From 0ada4a2e39a98bdafe873e6c70852c5156754dde Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Mon, 12 Mar 2012 00:18:13 +0000 Subject: [PATCH] On linux use a iso C (89) stdarg variable argument function. Gcc no longer supports old style varargs.h --- cde/lib/tt/mini_isam/iscntl.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/cde/lib/tt/mini_isam/iscntl.c b/cde/lib/tt/mini_isam/iscntl.c index a5ee7037..80a9e23e 100644 --- a/cde/lib/tt/mini_isam/iscntl.c +++ b/cde/lib/tt/mini_isam/iscntl.c @@ -39,7 +39,11 @@ static char sccsid[] = "@(#)iscntl.c 1.8 94/11/17"; * Generic control function */ +#if defined(linux) +#include +#else #include +#endif #include "isam_impl.h" @@ -75,17 +79,26 @@ static char sccsid[] = "@(#)iscntl.c 1.8 94/11/17"; typedef int (* intfunc)(); +#if defined(linux) +int +iscntl(int isfd, int func, ...) +#else int iscntl(isfd, func, va_alist) int isfd; int func; va_dcl +#endif { extern int (*_isfatal_error_set_func())(); va_list pvar; int ret; +#if defined(linux) + va_start(pvar, func); +#else va_start(pvar); +#endif switch (func) { case ISCNTL_MASKSIGNALS: -- 2.25.1