From 28423f6a2037f0275148b2539e23ef457a63f93b Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Thu, 5 Sep 2002 12:31:57 +0000 Subject: [PATCH] use stdint.h and inttypes.h if available git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14833 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/db2/ChangeLog | 4 ++++ src/util/db2/configure.in | 2 +- src/util/db2/include/ChangeLog | 4 ++++ src/util/db2/include/db-int.h | 7 +++++++ 4 files changed, 16 insertions(+), 1 deletion(-) 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 -- 2.26.2