Author: andy
Date: 2012-06-15 05:13:17 -0600 (Fri, 15 Jun 2012)
New Revision: 2471

Added:
   trunk/w3m/w3m-bdwgc72-1.patch
Log:
patch to fix compiling w3m with Boehm Gc 7.2 installed

Added: trunk/w3m/w3m-bdwgc72-1.patch
===================================================================
--- trunk/w3m/w3m-bdwgc72-1.patch                               (rev 0)
+++ trunk/w3m/w3m-bdwgc72-1.patch       2012-06-15 11:13:17 UTC (rev 2471)
@@ -0,0 +1,25 @@
+Submitted By: Andrew Benton <[email protected]>
+Date: 2012-06-15
+Initial Package Version: 0.5.3
+Upstream Status: Submitted
+Origin:
+http://sourceforge.net/tracker/index.php?func=detail&aid=3487712&group_id=39518&atid=425441
+Description: fixes compiling w3m-0.5.3 with Boehm Demers Weiser GC 7.2 
installed
+
+diff --git a/main.c b/main.c
+index b421943..865c744 100644
+--- a/main.c
++++ b/main.c
+@@ -833,7 +833,12 @@ main(int argc, char **argv, char **envp)
+     mySignal(SIGPIPE, SigPipe);
+ #endif
+
++#if GC_VERSION_MAJOR >= 7 && GC_VERSION_MINOR >= 2
++    orig_GC_warn_proc = GC_get_warn_proc();
++    GC_set_warn_proc(wrap_GC_warn_proc);
++#else
+     orig_GC_warn_proc = GC_set_warn_proc(wrap_GC_warn_proc);
++#endif
+     err_msg = Strnew();
+     if (load_argc == 0) {
+       /* no URL specified */

-- 
http://linuxfromscratch.org/mailman/listinfo/patches
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to