--- 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 -#include +#if defined(ARG_TYPE) +#if ARG_TYPE == ARG_STDARG +#include +#endif +#if ARG_TYPE == ARG_VARARGS +#include +#endif +#endif /* ARG_TYPE */ extern int _doprnt();