diff options
author | Gunnar Beutner <gunnar@beutner.name> | 2021-04-11 04:06:17 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-11 09:51:20 +0200 |
commit | dc446920e0710fec1a37b9212e1292df629be09a (patch) | |
tree | 1156208ae0ed9e614bd32fa97830134908320c01 | |
parent | 6f514b6803f200757f07c6860412b69aae6b8b1d (diff) | |
download | serenity-dc446920e0710fec1a37b9212e1292df629be09a.zip |
Ports: Fix building the libexpat port
-rw-r--r-- | Ports/libexpat/patches/fix-visibility.patch | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/Ports/libexpat/patches/fix-visibility.patch b/Ports/libexpat/patches/fix-visibility.patch new file mode 100644 index 0000000000..487e1082a8 --- /dev/null +++ b/Ports/libexpat/patches/fix-visibility.patch @@ -0,0 +1,66 @@ +diff -Naur expat-2.2.9/examples/elements.c expat-2.2.9.serenity/examples/elements.c +--- expat-2.2.9/examples/elements.c 2019-09-21 17:23:24.000000000 +0200 ++++ expat-2.2.9.serenity/examples/elements.c 2021-04-11 03:55:14.027401389 +0200 +@@ -70,6 +70,7 @@ + *depthPtr -= 1; + } + ++__attribute__((visibility("default"))) + int + main(int argc, char *argv[]) { + char buf[BUFSIZ]; +diff -Naur expat-2.2.9/examples/outline.c expat-2.2.9.serenity/examples/outline.c +--- expat-2.2.9/examples/outline.c 2019-09-21 17:23:24.000000000 +0200 ++++ expat-2.2.9.serenity/examples/outline.c 2021-04-11 03:55:51.864760235 +0200 +@@ -79,6 +79,7 @@ + Depth--; + } + ++__attribute__((visibility("default"))) + int + main(int argc, char *argv[]) { + XML_Parser p = XML_ParserCreate(NULL); +diff -Naur expat-2.2.9/tests/benchmark/benchmark.c expat-2.2.9.serenity/tests/benchmark/benchmark.c +--- expat-2.2.9/tests/benchmark/benchmark.c 2019-09-21 17:23:24.000000000 +0200 ++++ expat-2.2.9.serenity/tests/benchmark/benchmark.c 2021-04-11 03:57:00.892671995 +0200 +@@ -54,6 +54,7 @@ + exit(rc); + } + ++__attribute__((visibility("default"))) + int + main(int argc, char *argv[]) { + XML_Parser parser; +diff -Naur expat-2.2.9/tests/runtests.c expat-2.2.9.serenity/tests/runtests.c +--- expat-2.2.9/tests/runtests.c 2019-09-26 00:03:02.000000000 +0200 ++++ expat-2.2.9.serenity/tests/runtests.c 2021-04-11 03:56:30.438792094 +0200 +@@ -11566,6 +11566,7 @@ + return s; + } + ++__attribute__((visibility("default"))) + int + main(int argc, char *argv[]) { + int i, nf; +diff -Naur expat-2.2.9/xmlwf/ct.c expat-2.2.9.serenity/xmlwf/ct.c +--- expat-2.2.9/xmlwf/ct.c 2019-09-21 17:23:24.000000000 +0200 ++++ expat-2.2.9.serenity/xmlwf/ct.c 2021-04-11 03:57:26.136455396 +0200 +@@ -164,6 +164,7 @@ + } + } + ++__attribute__((visibility("default"))) + int + main(int argc, char **argv) { + char buf[CHARSET_MAX]; +diff -Naur expat-2.2.9/xmlwf/xmlwf.c expat-2.2.9.serenity/xmlwf/xmlwf.c +--- expat-2.2.9/xmlwf/xmlwf.c 2019-09-21 17:23:24.000000000 +0200 ++++ expat-2.2.9.serenity/xmlwf/xmlwf.c 2021-04-11 03:59:32.375335879 +0200 +@@ -891,6 +891,7 @@ + int wmain(int argc, XML_Char **argv); + #endif + ++__attribute__((visibility("default"))) + int + tmain(int argc, XML_Char **argv) { + int i, j; |