summaryrefslogtreecommitdiff
path: root/config.h.in
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-03-02 13:25:12 -0800
committerGuy Harris <guy@alum.mit.edu>2015-03-02 13:25:12 -0800
commit09b639add17c21a1cce31a1c48a3b95198e0c15b (patch)
tree24de6dba60fef189622e170fce95659a47eb1b7b /config.h.in
parent840d0bb8b4a3aa728302007ecc9d6055120c82d7 (diff)
downloadtcpdump-09b639add17c21a1cce31a1c48a3b95198e0c15b.tar.gz
C compilers can, and some do, optimize away pointer underflow checks.
Cast the pointers to uintptr_t; use AC_TYPE_UINTPTR_T to get uintptr_t defined on older platforms that don't define it themselves.
Diffstat (limited to 'config.h.in')
-rw-r--r--config.h.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/config.h.in b/config.h.in
index 11ce977b..914289a8 100644
--- a/config.h.in
+++ b/config.h.in
@@ -217,6 +217,9 @@
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H
+/* Define to 1 if the system has the type `uintptr_t'. */
+#undef HAVE_UINTPTR_T
+
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
@@ -388,3 +391,7 @@
/* Define to the type of an unsigned integer type of width exactly 8 bits if
such a type exists and the standard includes do not define it. */
#undef uint8_t
+
+/* Define to the type of an unsigned integer type wide enough to hold a
+ pointer, if such a type exists, and if the system does not define it. */
+#undef uintptr_t