summaryrefslogtreecommitdiff
path: root/pkg/netsurf/nsgenbind/patch
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2016-12-23 15:32:20 -0800
committerMichael Forney <mforney@mforney.org>2016-12-29 23:29:18 -0800
commite7181404bf50baf29e3a3d9f0e9ebe8a97566316 (patch)
tree2ef48628d13ee934f9d43a37f1e4d58c6bb46ca1 /pkg/netsurf/nsgenbind/patch
parent5084e84171fc00de2d65abd61e55577cd1fe1bff (diff)
Add netsurf 3.6
{nsgenbind,webidl}-{lexer,parser}.{c,h} were generated using flex and bison on unmodified 0.4 sources.
Diffstat (limited to 'pkg/netsurf/nsgenbind/patch')
-rw-r--r--pkg/netsurf/nsgenbind/patch/0001-Use-relative-include-paths.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkg/netsurf/nsgenbind/patch/0001-Use-relative-include-paths.patch b/pkg/netsurf/nsgenbind/patch/0001-Use-relative-include-paths.patch
new file mode 100644
index 00000000..db7579c2
--- /dev/null
+++ b/pkg/netsurf/nsgenbind/patch/0001-Use-relative-include-paths.patch
@@ -0,0 +1,37 @@
+From bf6cb0cd861dd2cbfa6a2e4754b6dd278b89b1d9 Mon Sep 17 00:00:00 2001
+From: Michael Forney <mforney@mforney.org>
+Date: Fri, 23 Dec 2016 15:24:36 -0800
+Subject: [PATCH] Use relative include paths
+
+---
+ src/duk-libdom-common.c | 14 +++-----------
+ 1 file changed, 3 insertions(+), 11 deletions(-)
+
+diff --git a/src/duk-libdom-common.c b/src/duk-libdom-common.c
+index 6111070..ff225b0 100644
+--- a/src/duk-libdom-common.c
++++ b/src/duk-libdom-common.c
+@@ -85,17 +85,9 @@ int output_tool_prologue(FILE* outf)
+ {
+ char *fpath;
+
+- fpath = genb_fpath("binding.h");
+- fprintf(outf, "\n#include \"%s\"\n", fpath);
+- free(fpath);
+-
+- fpath = genb_fpath("private.h");
+- fprintf(outf, "#include \"%s\"\n", fpath);
+- free(fpath);
+-
+- fpath = genb_fpath("prototype.h");
+- fprintf(outf, "#include \"%s\"\n", fpath);
+- free(fpath);
++ fputs("\n#include \"binding.h\"\n", outf);
++ fputs("#include \"private.h\"\n", outf);
++ fputs("#include \"prototype.h\"\n", outf);
+
+ return 0;
+ }
+--
+2.11.0
+