Project

General

Profile

Actions

Bug #1592

closed

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

Added by cog over 16 years ago. Updated over 16 years ago.

Status:
Fixed
Priority:
Normal
Category:
core
Target version:
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.

Actions #1

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