File rdist-6.1.5-stdarg.diff of Package rdist
--- config/os-linux.h +++ config/os-linux.h @@ -68,7 +68,7 @@ /* * Type of arg functions we have. */ -#define ARG_TYPE ARG_VARARGS +#define ARG_TYPE ARG_STDARG /* * Do we have select()? --- src/vsprintf.c +++ src/vsprintf.c @@ -1,5 +1,12 @@ #include <stdio.h> -#include <varargs.h> +#if defined(ARG_TYPE) +#if ARG_TYPE == ARG_STDARG +#include <stdarg.h> +#endif +#if ARG_TYPE == ARG_VARARGS +#include <varargs.h> +#endif +#endif /* ARG_TYPE */ extern int _doprnt();