File w3m-gc7.diff of Package w3m

From: Jan Engelhardt <jengelh@inai.de>
Date: 2013-03-21 17:25:03.803966321 +0100

build: make w3m compile with gc-7.x

---
 main.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Index: w3m-0.5.3/main.c
===================================================================
--- w3m-0.5.3.orig/main.c
+++ w3m-0.5.3/main.c
@@ -855,7 +855,8 @@ main(int argc, char **argv, char **envp)
     mySignal(SIGPIPE, SigPipe);
 #endif
 
-    orig_GC_warn_proc = GC_set_warn_proc(wrap_GC_warn_proc);
+    orig_GC_warn_proc = GC_get_warn_proc();
+    GC_set_warn_proc(wrap_GC_warn_proc);
     err_msg = Strnew();
     if (load_argc == 0) {
 	/* no URL specified */