From: Miroslav Lichvar Date: Fri, 3 Aug 2018 08:03:07 +0000 (+0200) Subject: configure: drop detection of stdint.h and inttypes.h X-Git-Tag: 3.4-pre1~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7ca560c3d93cee24b716e83b6fcf77958a2dde9;p=thirdparty%2Fchrony.git configure: drop detection of stdint.h and inttypes.h The current code uses macros from inttypes.h. There is no point in detecting and selecting between stdint.h and inttypes.h as the latter is always needed. --- diff --git a/configure b/configure index c5de5ea4..c6148ada 100755 --- a/configure +++ b/configure @@ -595,14 +595,6 @@ else fi fi -if test_code '' 'stdint.h' '' '' ''; then - add_def HAVE_STDINT_H -fi - -if test_code '' 'inttypes.h' '' '' ''; then - add_def HAVE_INTTYPES_H -fi - if test_code 'struct in_pktinfo' 'sys/socket.h netinet/in.h' '' '' ' struct in_pktinfo ipi; return sizeof (ipi.ipi_spec_dst.s_addr) + IP_PKTINFO;' diff --git a/sysincl.h b/sysincl.h index a9e4da02..54431de2 100644 --- a/sysincl.h +++ b/sysincl.h @@ -36,6 +36,7 @@ #include #include #include +#include #include #include #include @@ -63,14 +64,6 @@ #include #endif -#ifdef HAVE_INTTYPES_H -#include -#elif HAVE_STDINT_H -#include -#else -/* Tough */ -#endif - #ifdef FEAT_IPV6 /* For inet_ntop() */ #include