]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Autoconf: Do not check for C99 uintptr_t. [skip appveyor]
authorDenis Ovsienko <[email protected]>
Thu, 28 Mar 2024 14:31:46 +0000 (14:31 +0000)
committerDenis Ovsienko <[email protected]>
Fri, 29 Mar 2024 11:40:32 +0000 (11:40 +0000)
At the time of commit 09b639a in 2015 C99 was not a requirement yet, so
the use of AC_TYPE_UINTPTR_T was necessary.  However, CMake since its
introduction in 2018 has not been checking for uintptr_t, which proves
that by now all supported platforms have the type and the Autoconf check
is obsolete.

cmakeconfig.h.in
configure.ac

index 0bbf4ecfb827d301684a417825bd3b956e95f2e4..37f398c422c56570e6c5ad3ca0f6332990cbcef6 100644 (file)
 /* Define to 1 if the system has the type `struct ether_addr'. */
 #cmakedefine HAVE_STRUCT_ETHER_ADDR 1
 
-/* Define to 1 if the system has the type `uintptr_t'. */
-#cmakedefine HAVE_UINTPTR_T 1
-
 /* Define to 1 if you have the `vfork' function. */
 #cmakedefine HAVE_VFORK 1
 
 
 /* Define to `uint8_t' if u_int8_t not defined. */
 #cmakedefine u_int8_t 1
-
-/* 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. */
-#cmakedefine uintptr_t 1
index c1bca76362f94491d7c811efc303670f833252e6..1ec630461e88a1555cdaf8179f235cfb61eb8964 100644 (file)
@@ -725,12 +725,6 @@ solaris*)
        ;;
 esac
 
-#
-# Make sure we have a definition for C99's uintptr_t (regardless of
-# whether the environment is a C99 environment or not).
-#
-AC_TYPE_UINTPTR_T
-
 savedcppflags="$CPPFLAGS"
 CPPFLAGS="$CPPFLAGS $V_INCLS"