__gnat_is_regular_file_fd (int fd)
{
int ret;
- struct stat statbuf;
+ GNAT_STRUCT_STAT statbuf;
#ifdef __EMX__
/* Programs using screen I/O may need to reset the FPU after
__gnat_init_float();
#endif
- ret = fstat (fd, &statbuf);
+ ret = GNAT_FSTAT (fd, &statbuf);
return (!ret && S_ISREG (statbuf.st_mode));
}