summaryrefslogtreecommitdiff
path: root/ares_build.h.in
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2011-06-15 10:55:29 +0200
committerJakub Hrozek <jhrozek@redhat.com>2011-06-15 10:55:29 +0200
commitce03c818f4f0474237abdd881450ef7e468306a5 (patch)
tree7c1456664f7e6af577f861a2281c49eb225f517d /ares_build.h.in
parent22c527cc87438d219fd3a7df73fa54bd6a78a787 (diff)
downloadc-ares-ce03c818f4f0474237abdd881450ef7e468306a5.tar.gz
c-ares-ce03c818f4f0474237abdd881450ef7e468306a5.tar.bz2
c-ares-ce03c818f4f0474237abdd881450ef7e468306a5.zip
Revert "Do not use sized constants in public headers"
This reverts commit 22c01e96f7b2ae9923e1baa50bfe3c0d22297a7d. This is a Red Hat specific patch that does not belong into upstream
Diffstat (limited to 'ares_build.h.in')
-rw-r--r--ares_build.h.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/ares_build.h.in b/ares_build.h.in
index e582523..227782c 100644
--- a/ares_build.h.in
+++ b/ares_build.h.in
@@ -50,11 +50,21 @@
/* DEFINITION OF THESE SYMBOLS SHALL NOT TAKE PLACE ANYWHERE ELSE */
/* ================================================================ */
+#ifdef CARES_SIZEOF_LONG
+# error "CARES_SIZEOF_LONG shall not be defined except in ares_build.h"
+ Error Compilation_aborted_CARES_SIZEOF_LONG_already_defined
+#endif
+
#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
+#ifdef CARES_SIZEOF_ARES_SOCKLEN_T
+# error "CARES_SIZEOF_ARES_SOCKLEN_T shall not be defined except in ares_build.h"
+ Error Compilation_aborted_CARES_SIZEOF_ARES_SOCKLEN_T_already_defined
+#endif
+
/* ================================================================ */
/* EXTERNAL INTERFACE SETTINGS FOR CONFIGURE CAPABLE SYSTEMS ONLY */
/* ================================================================ */
@@ -85,9 +95,15 @@
# include <sys/socket.h>
#endif
+/* The size of `long', as computed by sizeof. */
+#undef CARES_SIZEOF_LONG
+
/* Integral data type used for ares_socklen_t. */
#undef CARES_TYPEOF_ARES_SOCKLEN_T
+/* The size of `ares_socklen_t', as computed by sizeof. */
+#undef CARES_SIZEOF_ARES_SOCKLEN_T
+
/* Data type definition of ares_socklen_t. */
typedef CARES_TYPEOF_ARES_SOCKLEN_T ares_socklen_t;