aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/c-ares/include/ares_build.h
diff options
context:
space:
mode:
authorshadchin <shadchin@yandex-team.ru>2022-02-17 23:09:13 +0300
committershadchin <shadchin@yandex-team.ru>2022-02-17 23:09:13 +0300
commit1e12ad07b2ad2362e06100f7f32e772e628bef66 (patch)
tree9981af0beb469cfef0d3d1658040f6bbf4206313 /contrib/libs/c-ares/include/ares_build.h
parent55c6ad7179b9300375e9a16a3956dc706fcb560b (diff)
downloadydb-1e12ad07b2ad2362e06100f7f32e772e628bef66.tar.gz
Update c-ares from 0.16.1 to 0.17.2
MAKEAYAMLHAPPY-12345 ref:6a83ac3af883b2fc963128b7993f0a467b0000cb
Diffstat (limited to 'contrib/libs/c-ares/include/ares_build.h')
-rw-r--r--contrib/libs/c-ares/include/ares_build.h115
1 files changed, 115 insertions, 0 deletions
diff --git a/contrib/libs/c-ares/include/ares_build.h b/contrib/libs/c-ares/include/ares_build.h
new file mode 100644
index 0000000000..2ed5a82b80
--- /dev/null
+++ b/contrib/libs/c-ares/include/ares_build.h
@@ -0,0 +1,115 @@
+/* include/ares_build.h. Generated from ares_build.h.in by configure. */
+#ifndef __CARES_BUILD_H
+#define __CARES_BUILD_H
+
+
+/* Copyright (C) 2009 by Daniel Stenberg et al
+ *
+ * Permission to use, copy, modify, and distribute this software and its
+ * documentation for any purpose and without fee is hereby granted, provided
+ * that the above copyright notice appear in all copies and that both that
+ * copyright notice and this permission notice appear in supporting
+ * documentation, and that the name of M.I.T. not be used in advertising or
+ * publicity pertaining to distribution of the software without specific,
+ * written prior permission. M.I.T. makes no representations about the
+ * suitability of this software for any purpose. It is provided "as is"
+ * without express or implied warranty.
+ */
+
+/* ================================================================ */
+/* NOTES FOR CONFIGURE CAPABLE SYSTEMS */
+/* ================================================================ */
+
+/*
+ * NOTE 1:
+ * -------
+ *
+ * Nothing in this file is intended to be modified or adjusted by the
+ * c-ares library user nor by the c-ares library builder.
+ *
+ * If you think that something actually needs to be changed, adjusted
+ * or fixed in this file, then, report it on the c-ares development
+ * mailing list: http://cool.haxx.se/mailman/listinfo/c-ares/
+ *
+ * This header file shall only export symbols which are 'cares' or 'CARES'
+ * prefixed, otherwise public name space would be polluted.
+ *
+ * NOTE 2:
+ * -------
+ *
+ * Right now you might be staring at file ares_build.h.in or ares_build.h,
+ * this is due to the following reason:
+ *
+ * On systems capable of running the configure script, the configure process
+ * will overwrite the distributed ares_build.h file with one that is suitable
+ * and specific to the library being configured and built, which is generated
+ * from the ares_build.h.in template file.
+ *
+ */
+
+/* ================================================================ */
+/* DEFINITION OF THESE SYMBOLS SHALL NOT TAKE PLACE ANYWHERE ELSE */
+/* ================================================================ */
+
+#ifdef CARES_TYPEOF_ARES_SOCKLEN_T
+# error "CARES_TYPEOF_ARES_SOCKLEN_T shall not be defined except in ares_build.h"
+ Error Compilation_aborted_CARES_TYPEOF_ARES_SOCKLEN_T_already_defined
+#endif
+
+/* ================================================================ */
+/* EXTERNAL INTERFACE SETTINGS FOR CONFIGURE CAPABLE SYSTEMS ONLY */
+/* ================================================================ */
+
+/* Configure process defines this to 1 when it finds out that system */
+/* header file ws2tcpip.h must be included by the external interface. */
+#ifdef _WIN32
+# define CARES_PULL_WS2TCPIP_H 1
+#endif
+#ifdef CARES_PULL_WS2TCPIP_H
+# ifndef WIN32_LEAN_AND_MEAN
+# define WIN32_LEAN_AND_MEAN
+# endif
+# include <windows.h>
+# include <winsock2.h>
+# include <ws2tcpip.h>
+#endif
+
+/* Configure process defines this to 1 when it finds out that system */
+/* header file sys/types.h must be included by the external interface. */
+#ifndef _WIN32
+# define CARES_PULL_SYS_TYPES_H 1
+#endif
+#ifdef CARES_PULL_SYS_TYPES_H
+# include <sys/types.h>
+#endif
+
+/* Configure process defines this to 1 when it finds out that system */
+/* header file sys/socket.h must be included by the external interface. */
+#ifndef _WIN32
+# define CARES_PULL_SYS_SOCKET_H 1
+#endif
+#ifdef CARES_PULL_SYS_SOCKET_H
+# include <sys/socket.h>
+#endif
+
+/* Integral data type used for ares_socklen_t. */
+#ifdef _WIN32
+# define CARES_TYPEOF_ARES_SOCKLEN_T int
+#else
+# define CARES_TYPEOF_ARES_SOCKLEN_T socklen_t
+#endif
+
+/* Data type definition of ares_socklen_t. */
+typedef CARES_TYPEOF_ARES_SOCKLEN_T ares_socklen_t;
+
+/* Integral data type used for ares_ssize_t. */
+#ifdef _WIN32
+# define CARES_TYPEOF_ARES_SSIZE_T __int64
+#else
+# define CARES_TYPEOF_ARES_SSIZE_T ssize_t
+#endif
+
+/* Data type definition of ares_ssize_t. */
+typedef CARES_TYPEOF_ARES_SSIZE_T ares_ssize_t;
+
+#endif /* __CARES_BUILD_H */