diff --git a/src/helper/jim.c b/src/helper/jim.c index 261b86029dcb2ccf2aec93d0021e498e46484291..601e0eb99302a1a753152140bd34d891e1e3d402 100644 --- a/src/helper/jim.c +++ b/src/helper/jim.c @@ -48,6 +48,15 @@ #ifdef __ECOS #include <pkgconf/jimtcl.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <stdarg.h> +#include <ctype.h> +#include <limits.h> +#include <assert.h> +#include <errno.h> +#include <time.h> #endif #ifndef JIM_ANSIC #define JIM_DYNLIB /* Dynamic library support for UNIX and WIN32 */ diff --git a/src/jtag/jtag.h b/src/jtag/jtag.h index 84290ca7e189c0fc7288b4fb60618b209116d4db..19c3058094748b1afc323d03384fc851a9e280da 100644 --- a/src/jtag/jtag.h +++ b/src/jtag/jtag.h @@ -607,6 +607,11 @@ extern void jtag_add_callback(jtag_callback1_t, u8 *in); /* implemented by minidriver */ #endif + +#ifdef __ECOS +typedef CYG_ADDRWORD intptr_t; +#endif + /* This type can store an integer safely by a normal cast on 64 and * 32 bit systems. */ typedef intptr_t jtag_callback_data_t;