summaryrefslogtreecommitdiff
path: root/config.h.in
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-04-23 10:56:20 -0700
committerGuy Harris <guy@alum.mit.edu>2014-04-23 10:56:20 -0700
commit30f0d2314d1086ebf4bad29b1d11c7916338b95d (patch)
tree275dbf40966f1376596534b3e132cd6eb4a7b8f3 /config.h.in
parent02fd22eb31a7385cfe483a2ee4980775a259b085 (diff)
downloadtcpdump-30f0d2314d1086ebf4bad29b1d11c7916338b95d.tar.gz
We still need u_intN_t.
Some libpcap headers use them, and even if we change libpcap to use uintN_t, we don't require that tcpdump 4.x go with libpcap 1.x - we allow people to install the latest tcpdump even if they have an older libpcap and don't want to install a newer one. However, we now define them in terms of the C99 uintN_t types, rather than trying to guess what's appropriate; using unsigned long long for u_int64_t meant that, on some platforms, u_int64_t didn't match PRI[doux]64, and using unsigned long obviously won't work on ILP32 platforms. Also, we already had calls to the autoconf macros for C99 types; get rid of the ones we added. Also also, clean up a comment in tcpdump-stdinc.h.
Diffstat (limited to 'config.h.in')
-rw-r--r--config.h.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/config.h.in b/config.h.in
index c8c6507c..4cdb31b7 100644
--- a/config.h.in
+++ b/config.h.in
@@ -334,6 +334,18 @@
a type exists and the standard includes do not define it. */
#undef int8_t
+/* Define to `uint16_t' if u_int16_t not defined. */
+#undef u_int16_t
+
+/* Define to `uint32_t' if u_int32_t not defined. */
+#undef u_int32_t
+
+/* Define to `uint64_t' if u_int64_t not defined. */
+#undef u_int64_t
+
+/* Define to `uint8_t' if u_int8_t not defined. */
+#undef u_int8_t
+
/* Define to the type of an unsigned integer type of width exactly 16 bits if
such a type exists and the standard includes do not define it. */
#undef uint16_t