From: Ken Raeburn Date: Thu, 5 Sep 2002 12:31:57 +0000 (+0000) Subject: use stdint.h and inttypes.h if available X-Git-Tag: krb5-1.3-alpha1~416 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=28423f6a2037f0275148b2539e23ef457a63f93b;p=krb5.git use stdint.h and inttypes.h if available git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14833 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/db2/ChangeLog b/src/util/db2/ChangeLog index 708a4a912..c1d16e294 100644 --- a/src/util/db2/ChangeLog +++ b/src/util/db2/ChangeLog @@ -1,3 +1,7 @@ +2002-09-05 Ken Raeburn + + * configure.in: Check for stdint.h and inttypes.h. + 2002-09-03 Ezra Peisach * acconfig.h: Remove file. All handled by configure.in now. diff --git a/src/util/db2/configure.in b/src/util/db2/configure.in index 1e444d89b..a156d69e4 100644 --- a/src/util/db2/configure.in +++ b/src/util/db2/configure.in @@ -29,7 +29,7 @@ AC_SUBST(FCTSH) dnl checks for libraries dnl checks for header files -AC_CHECK_HEADERS(unistd.h) +AC_CHECK_HEADERS(unistd.h stdint.h inttypes.h) dnl checks for typedefs AC_TYPE_SIZE_T diff --git a/src/util/db2/include/ChangeLog b/src/util/db2/include/ChangeLog index b025bde91..eacdbc8b7 100644 --- a/src/util/db2/include/ChangeLog +++ b/src/util/db2/include/ChangeLog @@ -1,3 +1,7 @@ +2002-09-05 Ken Raeburn + + * db-int.h: If stdint.h or inttypes.h are found, include them. + 2002-08-23 Tom Yu * db.h: Add rename and prototype for bt_rseq(); this is a kludge diff --git a/src/util/db2/include/db-int.h b/src/util/db2/include/db-int.h index 8ce1b15ba..2c21fb207 100644 --- a/src/util/db2/include/db-int.h +++ b/src/util/db2/include/db-int.h @@ -61,6 +61,13 @@ #include #include #include +#ifdef HAVE_STDINT_H +#include +#endif +#ifdef HAVE_INTTYPES_H +/* Tru64 5.1: int8_t is defined here, and stdint.h doesn't exist. */ +#include +#endif #include #include #include