From a61aafa325cb1f20d15264aee07e91c391e307f3 Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Tue, 23 Jan 2007 08:57:12 +0000 Subject: [PATCH] Speed-up djgpp's stat() by avoid checking for uneeded stuff. --- src/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.c b/src/main.c index 2dc94c1..1994f0f 100644 --- a/src/main.c +++ b/src/main.c @@ -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); } -- 2.7.4