]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Include <stdint.h> unconditionally: it is in C99.
authorDenis Ovsienko <[email protected]>
Tue, 26 Mar 2024 16:01:15 +0000 (16:01 +0000)
committerDenis Ovsienko <[email protected]>
Wed, 27 Mar 2024 09:44:16 +0000 (09:44 +0000)
Both Autoconf and CMake define HAVE_STDINT_H if the header is present,
which is always the case.

Also remove a few other macros that are not used or not even defined.

cmakeconfig.h.in
interface.h

index 6a6b393e4abeae39306fc46c0fbb9479a25fade1..05bb1737069e46b200521750e4a7d168be616853 100644 (file)
@@ -54,9 +54,6 @@
 /* Define to 1 if you have the `getservent' function. */
 #cmakedefine HAVE_GETSERVENT 1
 
-/* Define to 1 if you have the <inttypes.h> header file. */
-#cmakedefine HAVE_INTTYPES_H 1
-
 /* Define to 1 if you have the `cap-ng' library (-lcap-ng). */
 #cmakedefine HAVE_LIBCAP_NG 1
 
@@ -66,9 +63,6 @@
 /* Define to 1 if you have the `rpc' library (-lrpc). */
 #cmakedefine HAVE_LIBRPC 1
 
-/* Define to 1 if you have the <memory.h> header file. */
-#cmakedefine HAVE_MEMORY_H 1
-
 /* Define to 1 if you have the <net/if.h> header file. */
 #cmakedefine HAVE_NET_IF_H 1
 
 /* Define to 1 if you have the <rpc/rpc.h> header file. */
 #cmakedefine HAVE_RPC_RPC_H 1
 
-/* Define to 1 if you have the <stdint.h> header file. */
-#cmakedefine HAVE_STDINT_H 1
-
-/* Define to 1 if you have the <stdlib.h> header file. */
-#cmakedefine HAVE_STDLIB_H 1
-
-/* Define to 1 if you have the <strings.h> header file. */
-#cmakedefine HAVE_STRINGS_H 1
-
-/* Define to 1 if you have the <string.h> header file. */
-#cmakedefine HAVE_STRING_H 1
-
 /* Define to 1 if you have the `strlcat' function. */
 #cmakedefine HAVE_STRLCAT 1
 
 /* Define to 1 if the system has the type `struct ether_addr'. */
 #cmakedefine HAVE_STRUCT_ETHER_ADDR 1
 
-/* Define to 1 if you have the <sys/stat.h> header file. */
-#cmakedefine HAVE_SYS_STAT_H 1
-
-/* Define to 1 if you have the <sys/types.h> header file. */
-#cmakedefine HAVE_SYS_TYPES_H 1
-
 /* Define to 1 if the system has the type `uintptr_t'. */
 #cmakedefine HAVE_UINTPTR_T 1
 
-/* Define to 1 if you have the <unistd.h> header file. */
-#cmakedefine HAVE_UNISTD_H 1
-
 /* Define to 1 if you have the `vfork' function. */
 #cmakedefine HAVE_VFORK 1
 
index 0e35b7800f924f38648192e39ceb0dffebe3cce3..affa019cbd9ac18ae4e7cf7df7c996bd66e9dd07 100644 (file)
 #include "funcattrs.h"
 
 #include <stdarg.h>
-
-#if HAVE_STDINT_H
 #include <stdint.h>
-#endif
 
 #ifndef HAVE_STRLCAT
 extern size_t strlcat(char *, const char *, size_t);