Speed-up djgpp's stat() by avoid checking for uneeded stuff.

This commit is contained in:
Gisle Vanem 2007-01-23 08:57:12 +00:00
parent 33bea767eb
commit a61aafa325
1 changed files with 4 additions and 0 deletions

View File

@ -416,6 +416,10 @@ static void warnf(struct Configurable *config, const char *fmt, ...)
*/
static CURLcode main_init(void)
{
#ifdef __DJGPP__
/* stop stat() wasting time */
_djstat_flags |= _STAT_INODE | _STAT_EXEC_MAGIC | _STAT_DIRSIZE;
#endif
return curl_global_init(CURL_GLOBAL_DEFAULT);
}