summaryrefslogtreecommitdiffstats
path: root/src/util/db2
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/db2')
-rw-r--r--src/util/db2/ChangeLog7
-rw-r--r--src/util/db2/configure.in2
-rw-r--r--src/util/db2/include/db.h2
3 files changed, 10 insertions, 1 deletions
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 <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.
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. */