source: build-files/ports-overlay/www/w3m/files/patch-main.c @ f5a7226

9.2-releasereleng/10.0releng/10.0.1releng/10.0.2
Last change on this file since f5a7226 was f5a7226, checked in by Kris Moore <kris@…>, 9 months ago

Add w3m port with fixed main.c

  • Property mode set to 100644
File size: 479 bytes
Line 
1diff --git a/main.c b/main.c
2index b421943..865c744 100644
3--- main.c
4+++ main.c
5@@ -833,7 +833,12 @@ main(int argc, char **argv, char **envp)
6     mySignal(SIGPIPE, SigPipe);
7 #endif
8 
9+#if GC_VERSION_MAJOR >= 7 && GC_VERSION_MINOR >= 2
10+    orig_GC_warn_proc = GC_get_warn_proc();
11+    GC_set_warn_proc(wrap_GC_warn_proc);
12+#else
13     orig_GC_warn_proc = GC_set_warn_proc(wrap_GC_warn_proc);
14+#endif
15     err_msg = Strnew();
16     if (load_argc == 0) {
17        /* no URL specified */
Note: See TracBrowser for help on using the repository browser.