From: Ken Raeburn Date: Wed, 1 Mar 2006 20:20:08 +0000 (+0000) Subject: don't check sizeof(int) at configure time X-Git-Tag: krb5-1.5-alpha1~192 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=906b22b6cab771691b6c616b8e99822a7388c84f;p=krb5.git don't check sizeof(int) at configure time git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17689 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/plugins/kdb/db2/libdb2/ChangeLog b/src/plugins/kdb/db2/libdb2/ChangeLog index 3c6bc71e5..3d79f52e9 100644 --- a/src/plugins/kdb/db2/libdb2/ChangeLog +++ b/src/plugins/kdb/db2/libdb2/ChangeLog @@ -1,3 +1,7 @@ +2006-03-01 Ken Raeburn + + * configure.in: Don't check size of "int". + 2005-12-16 Ken Raeburn * Makefile.in (all-unix): Do depend on all-libs. diff --git a/src/plugins/kdb/db2/libdb2/configure.in b/src/plugins/kdb/db2/libdb2/configure.in index 9a339b0bb..a0a67bc28 100644 --- a/src/plugins/kdb/db2/libdb2/configure.in +++ b/src/plugins/kdb/db2/libdb2/configure.in @@ -70,7 +70,6 @@ AC_CHECK_HEADERS(endian.h machine/endian.h sys/param.h) dnl sys/param.h for AIX 4.3.3 (actually sys/machine.h) dnl There's also sys/endian.h on IRIX, but we already check _MIPSE{L,B}. AC_C_CONST -AC_CHECK_SIZEOF(int) dnl checks for library functions AC_CHECK_FUNC(memmove, , diff --git a/src/plugins/kdb/db2/libdb2/include/ChangeLog b/src/plugins/kdb/db2/libdb2/include/ChangeLog index 676bbd44a..3aa06c70f 100644 --- a/src/plugins/kdb/db2/libdb2/include/ChangeLog +++ b/src/plugins/kdb/db2/libdb2/include/ChangeLog @@ -1,3 +1,7 @@ +2006-03-01 Ken Raeburn + + * db.h: Check UINT_MAX, not SIZEOF_INT. + 2004-05-23 Ken Raeburn * db-int.h: Include sys/param.h if available. diff --git a/src/plugins/kdb/db2/libdb2/include/db.h b/src/plugins/kdb/db2/libdb2/include/db.h index 980145a3d..ad86d0af9 100644 --- a/src/plugins/kdb/db2/libdb2/include/db.h +++ b/src/plugins/kdb/db2/libdb2/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 SIZEOF_INT == 4 +#if UINT_MAX >= 0xffffffffUL #define DB_LOCK 0x20000000 /* Do locking. */ #define DB_SHMEM 0x40000000 /* Use shared memory. */ #define DB_TXN 0x80000000 /* Do transactions. */