wok-6.x diff w3m/stuff/w3m-0.5.2-gc72.patch @ rev 18401

open-vm-tools: more deps attempt
author Nathan Neulinger <nneul@neulinger.org>
date Sat Sep 19 03:40:34 2015 +0000 (2015-09-19)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/w3m/stuff/w3m-0.5.2-gc72.patch	Sat Sep 19 03:40:34 2015 +0000
     1.3 @@ -0,0 +1,27 @@
     1.4 +diff -Naurb w3m-0.5.2.orig/main.c w3m-0.5.2/main.c
     1.5 +--- main.c	2007-05-31 10:19:50.000000000 +0900
     1.6 ++++ main.c	2009-11-09 08:20:02.184953443 +0900
     1.7 +@@ -312,7 +312,11 @@
     1.8 + 	    lock = 0;
     1.9 + 	}
    1.10 +     }
    1.11 ++#if GC_VERSION_MAJOR >= 7 && GC_VERSION_MINOR >= 2
    1.12 ++    else if (orig_GC_warn_proc = GC_get_warn_proc())
    1.13 ++#else
    1.14 +     else if (orig_GC_warn_proc)
    1.15 ++#endif
    1.16 + 	orig_GC_warn_proc(msg, arg);
    1.17 +     else
    1.18 + 	fprintf(stderr, msg, (unsigned long)arg);
    1.19 +@@ -842,7 +846,11 @@
    1.20 +     mySignal(SIGPIPE, SigPipe);
    1.21 + #endif
    1.22 + 
    1.23 ++#if GC_VERSION_MAJOR >= 7 && GC_VERSION_MINOR >= 2
    1.24 ++    GC_set_warn_proc(wrap_GC_warn_proc);
    1.25 ++#else
    1.26 +     orig_GC_warn_proc = GC_set_warn_proc(wrap_GC_warn_proc);
    1.27 ++#endif
    1.28 +     err_msg = Strnew();
    1.29 +     if (load_argc == 0) {
    1.30 + 	/* no URL specified */