--- init.c.orig 2004-04-14 12:34:00.000000000 +0000 +++ init.c 2004-04-15 18:56:40.000000000 +0000 @@ -352,6 +352,45 @@ { } +#elif defined (__DJGPP__) + +/***************************************/ +/* __gnat_initialize (DJGPP version) */ +/* */ +/* FIXME: this is only a draft version */ +/***************************************/ + +struct timestruc_t +{ + time_t tv_sec; + long tv_nsec; +}; + + +int +nanosleep (struct timestruc_t *Rqtp, struct timestruc_t *Rmtp); + +int +nanosleep (struct timestruc_t *Rqtp, struct timestruc_t *Rmtp) +{ + usleep (1000000*Rqtp->tv_sec+Rqtp->tv_nsec/1000); + if (Rmtp) { Rmtp->tv_sec = Rmtp->tv_nsec=0; } + return 0; +} + + +void +__gnat_initialize () +{ +} + + +void +__gnat_install_handler () +{ + __gnat_handler_installed = 1; +} + /***************************************/ /* __gnat_initialize (RTEMS version) */ /***************************************/