command context: fix errors when running certain commands on startup
[fw/openocd] / src / helper / jim-eventloop.c
index edeeae71ef1df62e3d4dd6d1084d9db082c7ce2c..fae46e899e7dda40951db1f5012faed8c93f1d69 100644 (file)
@@ -52,8 +52,7 @@
 #define __JIM_EVENTLOOP_CORE__
 #ifdef __ECOS
 #include <pkgconf/jimtcl.h>
-#endif
-#ifdef __ECOS
+#include <sys/time.h>
 #include <cyg/jimtcl/jim.h>
 #include <cyg/jimtcl/jim-eventloop.h>
 #else