pkgsrc/databases/mysql-workbench/patches/patch-library_base_international_file.cpp
marino 4172501e35 databases/mysql-workbench: Fix unportable patch, add DragonFly fix
One patch was hardcoded for NetBSD, return it closer to intention without
breaking NetBSD.  It's still not great, but a little better.
2012-05-24 18:54:16 +00:00

13 lines
499 B
C++

$NetBSD: patch-library_base_international_file.cpp,v 1.2 2012/05/24 18:54:17 marino Exp $
--- library/base/international_file.cpp.orig 2011-03-17 12:48:42.000000000 +0000
+++ library/base/international_file.cpp
@@ -257,7 +257,7 @@ boost::int64_t read_char_from_intl_file(
else
{
gunichar utf8_char= g_utf8_get_char(file->next_utf8_char);
-#ifdef _WIN32
+#ifndef __DragonFly__
const char * cur_utf8_char= file->next_utf8_char;
#else
char * cur_utf8_char= file->next_utf8_char;