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:
parent
33bea767eb
commit
a61aafa325
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user