aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/openldap/android.diff
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/openldap/android.diff')
-rw-r--r--vcpkg/ports/openldap/android.diff13
1 files changed, 13 insertions, 0 deletions
diff --git a/vcpkg/ports/openldap/android.diff b/vcpkg/ports/openldap/android.diff
new file mode 100644
index 0000000..294c16f
--- /dev/null
+++ b/vcpkg/ports/openldap/android.diff
@@ -0,0 +1,13 @@
+diff --git a/libraries/libldap/utf-8-conv.c b/libraries/libldap/utf-8-conv.c
+index 98ed58d..4bd5459 100644
+--- a/libraries/libldap/utf-8-conv.c
++++ b/libraries/libldap/utf-8-conv.c
+@@ -328,7 +328,7 @@ ldap_x_wcs_to_utf8s ( char *utf8str, const wchar_t *wcstr, size_t count )
+ return (p - utf8str);
+ }
+
+-#ifdef ANDROID
++#if 0
+ int wctomb(char *s, wchar_t wc) { return wcrtomb(s,wc,NULL); }
+ int mbtowc(wchar_t *pwc, const char *s, size_t n) { return mbrtowc(pwc, s, n, NULL); }
+ #endif