aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/curl/lib/curl_config.h
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.ru>2022-02-10 16:45:12 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:12 +0300
commit49116032d905455a7b1c994e4a696afc885c1e71 (patch)
treebe835aa92c6248212e705f25388ebafcf84bc7a1 /contrib/libs/curl/lib/curl_config.h
parent4e839db24a3bbc9f1c610c43d6faaaa99824dcca (diff)
downloadydb-49116032d905455a7b1c994e4a696afc885c1e71.tar.gz
Restoring authorship annotation for <thegeorg@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/curl/lib/curl_config.h')
-rw-r--r--contrib/libs/curl/lib/curl_config.h80
1 files changed, 40 insertions, 40 deletions
diff --git a/contrib/libs/curl/lib/curl_config.h b/contrib/libs/curl/lib/curl_config.h
index 224269b3ee..e58dec7079 100644
--- a/contrib/libs/curl/lib/curl_config.h
+++ b/contrib/libs/curl/lib/curl_config.h
@@ -17,51 +17,51 @@
#else
# include "curl_config-linux.h"
#endif
-
+
#if defined(_musl_)
# include "curl_config-musl.h"
#endif
-// Do not misrepresent host on Android and iOS.
-#undef OS
+// Do not misrepresent host on Android and iOS.
+#undef OS
#define OS "arcadia"
-// c-ares resolver is known to be buggy.
-//
-// There is no way to configure it properly without a JVM on Android,
-// because Android lacks traditional resolv.conf.
-//
-// For standalone Android programs, it is impossible
-// to contact ConnectionManager outside the JVM; this breaks c-ares DNS resolution.
-// As we can not distinguish builds of Android apps from standalone Android programs.
-//
-// During mapkit experiments, c-ares was adding about 10ms to each query timespan.
-//
-//
-// On Linux it caches /etc/resolv.conf contents and does not invalidate it properly
+// c-ares resolver is known to be buggy.
+//
+// There is no way to configure it properly without a JVM on Android,
+// because Android lacks traditional resolv.conf.
+//
+// For standalone Android programs, it is impossible
+// to contact ConnectionManager outside the JVM; this breaks c-ares DNS resolution.
+// As we can not distinguish builds of Android apps from standalone Android programs.
+//
+// During mapkit experiments, c-ares was adding about 10ms to each query timespan.
+//
+//
+// On Linux it caches /etc/resolv.conf contents and does not invalidate it properly
-#if defined(ARCADIA_CURL_DNS_RESOLVER_ARES)
- #define USE_ARES
-#elif defined(ARCADIA_CURL_DNS_RESOLVER_MULTITHREADED)
- #if defined(USE_ARES)
- #undef USE_ARES
- #endif
- #if defined(__linux__) && !defined(USE_THREADS_POSIX)
- #define USE_THREADS_POSIX 1
- #elif defined(_MSC_VER) && !defined(USE_THREADS_WIN32)
- #define USE_THREADS_WIN32 1
- #endif
-#elif defined(ARCADIA_CURL_DNS_RESOLVER_SYNCHRONOUS)
- // force using synchronous resolver by disabling thread support
- #if defined(USE_ARES)
- #undef USE_ARES
- #endif
- #if defined(USE_THREADS_POSIX)
- #undef USE_THREADS_POSIX
- #endif
- #if defined(USE_THREADS_WIN32)
- #undef USE_THREADS_WIN32
- #endif
-#else
- #error "No dns resolver is specified or resolver specification is wrong"
+#if defined(ARCADIA_CURL_DNS_RESOLVER_ARES)
+ #define USE_ARES
+#elif defined(ARCADIA_CURL_DNS_RESOLVER_MULTITHREADED)
+ #if defined(USE_ARES)
+ #undef USE_ARES
+ #endif
+ #if defined(__linux__) && !defined(USE_THREADS_POSIX)
+ #define USE_THREADS_POSIX 1
+ #elif defined(_MSC_VER) && !defined(USE_THREADS_WIN32)
+ #define USE_THREADS_WIN32 1
+ #endif
+#elif defined(ARCADIA_CURL_DNS_RESOLVER_SYNCHRONOUS)
+ // force using synchronous resolver by disabling thread support
+ #if defined(USE_ARES)
+ #undef USE_ARES
+ #endif
+ #if defined(USE_THREADS_POSIX)
+ #undef USE_THREADS_POSIX
+ #endif
+ #if defined(USE_THREADS_WIN32)
+ #undef USE_THREADS_WIN32
+ #endif
+#else
+ #error "No dns resolver is specified or resolver specification is wrong"
#endif