Bug #1592

mod_compress.c fails to compile with old gcc version (2.96)

Added by cog 217 days ago. Updated 216 days ago.

Status:Fixed Start:
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:core
Target version:1.5.0
Pending:

No

Resolution:

fixed


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 @
} + struct stat st;
mkdir_recursive(s->compress_cache_dir->ptr);

if (!buffer_is_empty(s->compress_cache_dir)) {

- 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

03/13/2008 03:39 PM - stbuehler

  • Status changed from New to Fixed
  • Resolution set to fixed

Fixed in r2128

Also available in: Atom PDF