Actions
Bug #1592
closedmod_compress.c fails to compile with old gcc version (2.96)
ASK QUESTIONS IN Forums:
Description
1.4.19 didn't want to compile on some of my older machines running gcc 2.96.
mod_compress.c
This is the patch I was given, which compiles.
mod_compress.c
===============================================================
--- mod_compress.c (revision 2166)
+++ mod_compress.c (local)
@ -178,9 +178,9
@
}
if (!buffer_is_empty(s->compress_cache_dir)) {
+ struct stat st;
mkdir_recursive(s->compress_cache_dir->ptr);
- struct stat st;
if (0 != stat(s->compress_cache_dir->ptr, &st)) {
log_error_write(srv, FILE_, LINE_, "sbs", "can't stat compress.cache-dir",
s->compress_cache_dir, strerror(errno));
Thanks to the help on the IRC channel.
Updated by stbuehler over 16 years ago
- Status changed from New to Fixed
- Resolution set to fixed
Fixed in r2128
Actions
Also available in: Atom