wok diff w3m/stuff/w3m-0.5.2-gc72.patch @ rev 21022

updated gxmessage (2.6.2 -> 2.20.4)
author Hans-G?nter Theisgen
date Sun Mar 10 15:40:30 2019 +0100 (2019-03-10)
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	Sun Mar 10 15:40:30 2019 +0100
     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 */