Bug #1592
mod_compress.c fails to compile with old gcc version (2.96)
| Status: | Fixed | Start date: | ||
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% | |
| Category: | core | |||
| Target version: | 1.5.0 | |||
| Missing in 1.5.x: |
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.
History
#1 Updated by stbuehler over 5 years ago
- Status changed from New to Fixed
- Resolution set to fixed
Fixed in r2128
Also available in: Atom