Project

General

Profile

Bug #1592

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

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

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
core
Target version:
Start date:
Due date:
% Done:

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.

Associated revisions

Revision adec5443 (diff)
Added by stbuehler over 8 years ago

Fix mod_compress to compile with old gcc version (#1592)

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2128 152afb58-edef-0310-8abb-c4023f1b3aa9

History

#1 Updated by stbuehler over 8 years ago

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

Fixed in r2128

Also available in: Atom