1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 00:28:48 -05:00

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

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);
}