Commit a4a66e30 authored by Marco Mariani's avatar Marco Mariani

patch to build w3m with new gcc

parent 276a7091
...@@ -31,7 +31,7 @@ patch-options = ...@@ -31,7 +31,7 @@ patch-options =
-p1 -p1
patches = patches =
${:_profile_base_location_}/w3m.gcc.forward.compat.patch#75422a6f7f671b3a6d9add6724cc0945 ${:_profile_base_location_}/w3m.gcc.forward.compat.patch#2dba0c0bc5118ccfe49a56d93b8d7847
environment = environment =
PATH=${pkgconfig:location}/bin:%(PATH)s PATH=${pkgconfig:location}/bin:%(PATH)s
......
...@@ -60,3 +60,20 @@ index a220d8b..6d9736d 100644 ...@@ -60,3 +60,20 @@ index a220d8b..6d9736d 100644
char type; char type;
char iseos; char iseos;
int (*read) (); int (*read) ();
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 */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment