From 17b173905de7f946a38e06af0749ec8ef5e156cf Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Wed, 28 Aug 1996 21:27:24 +0000 Subject: [PATCH] * configure.in: Add check for SIZEOF_INT * include/db.h: Check SIZEOF_INT rather than UINT_MAX; it's broken under Ultrix. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8997 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/db2/ChangeLog | 7 +++++++ src/util/db2/configure.in | 2 ++ src/util/db2/include/db.h | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/util/db2/ChangeLog b/src/util/db2/ChangeLog index 2fb42cef7..6d4f9fa34 100644 --- a/src/util/db2/ChangeLog +++ b/src/util/db2/ChangeLog @@ -1,3 +1,10 @@ +Wed Aug 28 17:25:10 1996 Tom Yu + + * configure.in: Add check for SIZEOF_INT. + + * include/db.h: Check SIZEOF_INT rather than UINT_MAX; it's broken + under Ultrix. + Thu Aug 22 23:13:32 1996 Ezra Peisach * Makefile.in: Add dummy rule for Makefiles. diff --git a/src/util/db2/configure.in b/src/util/db2/configure.in index 3d256c40b..a323bbfab 100644 --- a/src/util/db2/configure.in +++ b/src/util/db2/configure.in @@ -47,10 +47,12 @@ AC_CHECK_TYPE(int16_t, short) AC_CHECK_TYPE(u_int16_t, unsigned short) AC_CHECK_TYPE(int32_t, int) AC_CHECK_TYPE(u_int32_t, unsigned int) + dnl checks for structures dnl checks for compiler characteristics AC_C_BIGENDIAN AC_C_CONST +AC_CHECK_SIZEOF(int) dnl checks for library functions AC_CHECK_FUNC(memmove,,MEMMOVE_OBJ=memmove.o) AC_CHECK_FUNC(mkstemp,,MKSTEMP_OBJ=mkstemp.o) diff --git a/src/util/db2/include/db.h b/src/util/db2/include/db.h index 6b5c04e6b..db19429e3 100644 --- a/src/util/db2/include/db.h +++ b/src/util/db2/include/db.h @@ -78,7 +78,7 @@ typedef enum { DB_BTREE, DB_HASH, DB_RECNO } DBTYPE; * is so that the access methods can skip copying the key/data pair when * the DB_LOCK flag isn't set. */ -#if UINT_MAX > 65535 +#if SIZEOF_INT == 4 #define DB_LOCK 0x20000000 /* Do locking. */ #define DB_SHMEM 0x40000000 /* Use shared memory. */ #define DB_TXN 0x80000000 /* Do transactions. */ -- 2.26.2