]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
configure: drop detection of stdint.h and inttypes.h
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 3 Aug 2018 08:03:07 +0000 (10:03 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 3 Aug 2018 15:21:02 +0000 (17:21 +0200)
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.

configure
sysincl.h

index c5de5ea4c9d250f898f99c8da182623b993610d5..c6148ada79633627fbbb160fb614416990728825 100755 (executable)
--- a/configure
+++ b/configure
@@ -595,14 +595,6 @@ else
   fi
 fi
   
-if test_code '<stdint.h>' 'stdint.h' '' '' ''; then
-  add_def HAVE_STDINT_H
-fi
-
-if test_code '<inttypes.h>' '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;'
index a9e4da023eb26a518706db148642661185f056fa..54431de278abc6b20aef4cc52a13d9732a80b762 100644 (file)
--- a/sysincl.h
+++ b/sysincl.h
@@ -36,6 +36,7 @@
 #include <float.h>
 #include <glob.h>
 #include <grp.h>
+#include <inttypes.h>
 #include <math.h>
 #include <netdb.h>
 #include <netinet/in.h>
 #include <sys/timex.h>
 #endif
 
-#ifdef HAVE_INTTYPES_H
-#include <inttypes.h>
-#elif HAVE_STDINT_H
-#include <stdint.h>
-#else
-/* Tough */
-#endif
-
 #ifdef FEAT_IPV6
 /* For inet_ntop() */
 #include <arpa/inet.h>