aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits
diff options
context:
space:
mode:
authorMax Brazhnikov <makc@FreeBSD.org>2020-11-19 21:02:21 +0000
committerMax Brazhnikov <makc@FreeBSD.org>2020-11-19 21:02:21 +0000
commit00a286433b1d02e4aad9f93693b97250b54c0266 (patch)
treeda6a5e67cb98fd812ec8b7f330acff736273a647 /x11-toolkits
parent162b29330b8280847a34d7dc780d5255a8df059b (diff)
downloadports-00a286433b1d02e4aad9f93693b97250b54c0266.tar.gz
ports-00a286433b1d02e4aad9f93693b97250b54c0266.zip
x11-toolkits/swt: add patch to fix build with -fno-common
Notes
Notes: svn path=/head/; revision=555717
Diffstat (limited to 'x11-toolkits')
-rw-r--r--x11-toolkits/swt/files/patch-os__custom.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/x11-toolkits/swt/files/patch-os__custom.h b/x11-toolkits/swt/files/patch-os__custom.h
new file mode 100644
index 000000000000..803689e3524f
--- /dev/null
+++ b/x11-toolkits/swt/files/patch-os__custom.h
@@ -0,0 +1,11 @@
+--- os_custom.h.orig 2019-03-07 02:31:04 UTC
++++ os_custom.h
+@@ -105,7 +105,7 @@ glong g_utf16_offset_to_utf8_offset(const gchar*, glon
+ glong g_utf8_offset_to_utf16_offset(const gchar*, glong);
+
+ // Cached JVM pointer: see bug 521487.
+-JavaVM *cached_jvm;
++extern JavaVM *cached_jvm;
+
+ #define SWT_TYPE_FIXED (swt_fixed_get_type ())
+ #define SWT_FIXED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SWT_TYPE_FIXED, SwtFixed))