From: Peter Howkins Date: Mon, 12 Mar 2012 00:18:13 +0000 (+0000) Subject: On linux use a iso C (89) stdarg variable argument function. X-Git-Tag: 2.2.0a~26^2~127 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0ada4a2e39a98bdafe873e6c70852c5156754dde;p=oweals%2Fcde.git On linux use a iso C (89) stdarg variable argument function. Gcc no longer supports old style varargs.h --- 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: