* configure.in: Add check for SIZEOF_INT
authorTom Yu <tlyu@mit.edu>
Wed, 28 Aug 1996 21:27:24 +0000 (21:27 +0000)
committerTom Yu <tlyu@mit.edu>
Wed, 28 Aug 1996 21:27:24 +0000 (21:27 +0000)
* 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
src/util/db2/configure.in
src/util/db2/include/db.h

index 2fb42cef79c47dc510f3ca467adccb994ce3c502..6d4f9fa34d316b1d3ae60d7e984d4ef03669cc45 100644 (file)
@@ -1,3 +1,10 @@
+Wed Aug 28 17:25:10 1996  Tom Yu  <tlyu@mit.edu>
+
+       * 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  <epeisach@kangaroo.mit.edu>
 
        * Makefile.in: Add dummy rule for Makefiles.
index 3d256c40b794cf98a43ac5ef9f16f6ca52a05cf2..a323bbfab3744349c39de7ccc7695308564d393a 100644 (file)
@@ -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)
index 6b5c04e6b9daf6b3b3b2a8b9518589aa21410a24..db19429e357c5f35b9c29d56b9849364b2e2a06c 100644 (file)
@@ -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. */