summaryrefslogtreecommitdiff
path: root/network/w3m/patches/w3m-0.5.2-gc72.patch
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2012-09-23 17:59:23 +0200
committerRobby Workman <rworkman@slackbuilds.org>2012-09-24 22:53:31 -0500
commitce3950f8bd373932f10584519d91491b6a485a48 (patch)
treee3f9731fac56fa57d6f1c07b29dc4a5e1f7ec8ea /network/w3m/patches/w3m-0.5.2-gc72.patch
parent6e1757e71076dacc15716626f84611618b0f5704 (diff)
downloadslackbuilds-ce3950f8bd373932f10584519d91491b6a485a48.tar.gz
network/w3m: Added various patches.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'network/w3m/patches/w3m-0.5.2-gc72.patch')
-rw-r--r--network/w3m/patches/w3m-0.5.2-gc72.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/network/w3m/patches/w3m-0.5.2-gc72.patch b/network/w3m/patches/w3m-0.5.2-gc72.patch
new file mode 100644
index 0000000000..f2df44f06b
--- /dev/null
+++ b/network/w3m/patches/w3m-0.5.2-gc72.patch
@@ -0,0 +1,27 @@
+diff -Naurb w3m-0.5.2.orig/main.c w3m-0.5.2/main.c
+--- w3m-0.5.2.orig/main.c 2007-05-31 10:19:50.000000000 +0900
++++ w3m-0.5.2/main.c 2009-11-09 08:20:02.184953443 +0900
+@@ -312,7 +312,11 @@
+ lock = 0;
+ }
+ }
++#if GC_VERSION_MAJOR >= 7 && GC_VERSION_MINOR >= 2
++ else if (orig_GC_warn_proc = GC_get_warn_proc())
++#else
+ else if (orig_GC_warn_proc)
++#endif
+ orig_GC_warn_proc(msg, arg);
+ else
+ fprintf(stderr, msg, (unsigned long)arg);
+@@ -842,7 +846,11 @@
+ mySignal(SIGPIPE, SigPipe);
+ #endif
+
++#if GC_VERSION_MAJOR >= 7 && GC_VERSION_MINOR >= 2
++ 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 */