aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkharcheva <kharcheva@yandex-team.com>2024-11-15 02:02:44 +0300
committerkharcheva <kharcheva@yandex-team.com>2024-11-15 02:17:20 +0300
commit9e48ca008c68efe73a9d6cbce7390208726f1153 (patch)
treed64ea3fb83cc44499aaca41604e9b601f01e983e
parenta9f9f25b22ad72d8c942aaa4babad5d71958561e (diff)
downloadydb-9e48ca008c68efe73a9d6cbce7390208726f1153.tar.gz
Support Android build for libidn
discussion <HIDDEN_URL> commit_hash:428d97f442749f3909973ecf3ca24cb9cf1e9f56
-rw-r--r--contrib/libs/libidn/config-android.h5
-rw-r--r--contrib/libs/libidn/config.h4
2 files changed, 8 insertions, 1 deletions
diff --git a/contrib/libs/libidn/config-android.h b/contrib/libs/libidn/config-android.h
new file mode 100644
index 0000000000..4acab536aa
--- /dev/null
+++ b/contrib/libs/libidn/config-android.h
@@ -0,0 +1,5 @@
+#pragma once
+
+#include "config-linux.h"
+
+#undef ENABLE_NLS
diff --git a/contrib/libs/libidn/config.h b/contrib/libs/libidn/config.h
index 1614a4f2b6..8c623aca26 100644
--- a/contrib/libs/libidn/config.h
+++ b/contrib/libs/libidn/config.h
@@ -1,6 +1,8 @@
#pragma once
-#if defined(__APPLE__)
+#if defined(__ANDROID__)
+# include "config-android.h"
+#elif defined(__APPLE__)
# include "config-osx.h"
#elif defined(_MSC_VER)
# include "config-win.h"