diff --git a/src/tools/gensyscalls/gensyscalls.h b/src/tools/gensyscalls/gensyscalls.h index 0c7ec2dcc8..25630efd1e 100644 --- a/src/tools/gensyscalls/gensyscalls.h +++ b/src/tools/gensyscalls/gensyscalls.h @@ -1,6 +1,16 @@ #ifndef GENSYSCALLS_H #define GENSYSCALLS_H +// TODO: is pre-processed with the cross-compiler, but the +// pre-processed header is compiled with the native compiler. Unfortunately +// is included indirectly, which results in a missing typedef when +// the host compiler is gcc 2 and the native compiler gcc 4. The type is never +// really used, so this doesn't really matter what it is defined to. The better +// solution would be to remove the dependency, though. +#if __GNUC__ == 2 +typedef void *__builtin_va_list; +#endif + // Type class Type { public: