diff --git a/databases/iodbc/patches/patch-iodbcinst_unicode_c b/databases/iodbc/patches/patch-iodbcinst_unicode_c new file mode 100644 index 00000000000..4d531b27bdc --- /dev/null +++ b/databases/iodbc/patches/patch-iodbcinst_unicode_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-iodbcinst_unicode_c,v 1.1 2011/06/06 10:55:17 naddy Exp $ +--- iodbcinst/unicode.c.orig Sun Jun 5 23:35:43 2011 ++++ iodbcinst/unicode.c Sun Jun 5 23:36:27 2011 +@@ -230,7 +230,7 @@ towlower (wchar_t wc) + + + #if !defined(HAVE_WCSNCASECMP) +-int wcsncasecmp (wchar_t* s1, wchar_t* s2, size_t n) ++int wcsncasecmp (const wchar_t* s1, const wchar_t* s2, size_t n) + { + wchar_t c1, c2; + diff --git a/databases/iodbc/patches/patch-iodbcinst_unicode_h b/databases/iodbc/patches/patch-iodbcinst_unicode_h new file mode 100644 index 00000000000..0b950fd8db1 --- /dev/null +++ b/databases/iodbc/patches/patch-iodbcinst_unicode_h @@ -0,0 +1,12 @@ +$OpenBSD: patch-iodbcinst_unicode_h,v 1.3 2011/06/06 10:55:17 naddy Exp $ +--- iodbcinst/unicode.h.orig Sun Jun 5 23:35:04 2011 ++++ iodbcinst/unicode.h Sun Jun 5 23:36:04 2011 +@@ -151,7 +151,7 @@ wchar_t* wcscat(wchar_t *dest, const wchar_t *src); + int wcscmp (const wchar_t* s1, const wchar_t* s2); + #endif + #if !defined(HAVE_WCSNCASECMP) +-int wcsncasecmp (wchar_t* s1, wchar_t* s2, size_t n); ++int wcsncasecmp (const wchar_t* s1, const wchar_t* s2, size_t n); + #endif + + #endif /* _UNICODE_H */