diff options
author | jperkin <jperkin@pkgsrc.org> | 2020-09-18 08:55:45 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2020-09-18 08:55:45 +0000 |
commit | 291f4da8e4bc0f775c1ceb31e8b9beb8e759c61c (patch) | |
tree | 8fc2a67c7d1f505f338f0689ddc686db42757fc4 /net/libfilezilla | |
parent | d206ad735cb894be41ca99c1ef82adc8b5be1928 (diff) | |
download | pkgsrc-291f4da8e4bc0f775c1ceb31e8b9beb8e759c61c.tar.gz |
libfilezilla: Limit std::wcsnrtombs to SunOS.
Diffstat (limited to 'net/libfilezilla')
-rw-r--r-- | net/libfilezilla/distinfo | 3 | ||||
-rw-r--r-- | net/libfilezilla/patches/patch-lib_string.cpp | 17 |
2 files changed, 19 insertions, 1 deletions
diff --git a/net/libfilezilla/distinfo b/net/libfilezilla/distinfo index 658f5b8b0db..c2447c806d1 100644 --- a/net/libfilezilla/distinfo +++ b/net/libfilezilla/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.27 2020/09/18 07:57:38 wiz Exp $ +$NetBSD: distinfo,v 1.28 2020/09/18 08:55:45 jperkin Exp $ SHA1 (libfilezilla-0.24.1.tar.bz2) = 0cc47178917abc8e33b1c08bbe4f4d9a1de8180e RMD160 (libfilezilla-0.24.1.tar.bz2) = e4439b7039f35536b447f523489a478f1ea34dde SHA512 (libfilezilla-0.24.1.tar.bz2) = f9075bb88e5c10617d21fb7b49f7e9bd38567eeca3c4a1cd8b1e20354b1e3da95f05618897cefa6758c7843efd9833230843f77a0c23e7019cf22c950e7e8e8c Size (libfilezilla-0.24.1.tar.bz2) = 560439 bytes SHA1 (patch-lib_socket.cpp) = c0bd9a42d312fb4990eca74ecdae34da1edb5d2d +SHA1 (patch-lib_string.cpp) = bcd82d2e02bcdfbd14c8b0e0c74fbbd235dc1329 diff --git a/net/libfilezilla/patches/patch-lib_string.cpp b/net/libfilezilla/patches/patch-lib_string.cpp new file mode 100644 index 00000000000..e3a5b88c7f7 --- /dev/null +++ b/net/libfilezilla/patches/patch-lib_string.cpp @@ -0,0 +1,17 @@ +$NetBSD: patch-lib_string.cpp,v 1.9 2020/09/18 08:55:45 jperkin Exp $ + +Use std::wcsnrtombs() on SunOS. + +--- lib/string.cpp.orig 2020-07-07 12:06:31.000000000 +0000 ++++ lib/string.cpp +@@ -13,6 +13,10 @@ + + #include <cstdlib> + ++#ifdef __sun ++using std::wcsnrtombs; ++#endif ++ + static_assert('a' + 25 == 'z', "We only support systems running with an ASCII-based character set. Sorry, no EBCDIC."); + + // char may be unsigned, yielding stange results if subtracting characters. To work around it, expect a particular order of characters. |