diff options
author | Gisle Vanem <gvanem@broadpark.no> | 2007-01-23 08:57:12 +0000 |
---|---|---|
committer | Gisle Vanem <gvanem@broadpark.no> | 2007-01-23 08:57:12 +0000 |
commit | a61aafa325cb1f20d15264aee07e91c391e307f3 (patch) | |
tree | 563e90ec3236c87639a6976421ed491524402db8 /src | |
parent | 33bea767ebd0bbf11867fe1af31dc345e9f816af (diff) |
Speed-up djgpp's stat() by avoid checking for uneeded stuff.
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index 2dc94c115..1994f0fcb 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); } |