ports/chinese/scim-fcitx/files/patch-src_ime.h
Piotr Kubaj e92429d6e6 chinese/scim-fcitx: fix build with GCC-based architectures
Apart from using new GCC on GCC architectures, this port also needs to including sys/types.h and cstring in some cpp files:
/usr/local/lib/libscim-1.0.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21'

PR:		237148
Approved by:	meta (maintainer timeout), mat (mentor)
Differential Revision:	https://reviews.freebsd.org/D20106
2019-04-30 19:23:44 +00:00

12 lines
199 B
C

--- src/ime.h.orig 2019-04-09 08:16:46 UTC
+++ src/ime.h
@@ -2,6 +2,9 @@
#define _IME_H
#include "xim.h"
+#ifdef __FreeBSD__
+#include <sys/types.h>
+#endif
#include "scim_fcitx_imengine.h"