From 189ed05f74910699465b8fd61ef05c4c689ae04d Mon Sep 17 00:00:00 2001 From: Mark Eichin Date: Wed, 28 Jun 1995 04:25:26 +0000 Subject: [PATCH] * configure.in: use AC_CHECK_FUNCS and check for memmove. hash.h: if we don't HAVE_MEMMOVE use bcopy. Really, though, a quick glance seems to indicate that most of the uses of memmove could really be handled by memcpy, but I haven't time to prove it right now. If I'm right, back out this check. (This is for sunos 4 which has memcpy but not memmove.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6181 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/berk_db/hash/ChangeLog | 5 +++++ src/util/berk_db/hash/configure.in | 2 +- src/util/berk_db/hash/hash.h | 4 ++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/util/berk_db/hash/ChangeLog b/src/util/berk_db/hash/ChangeLog index 4560a50d1..bf0278fca 100644 --- a/src/util/berk_db/hash/ChangeLog +++ b/src/util/berk_db/hash/ChangeLog @@ -1,3 +1,8 @@ +Wed Jun 28 00:18:16 1995 Mark Eichin + + * configure.in: use AC_CHECK_FUNCS and check for memmove. + hash.h: if we don't HAVE_MEMMOVE use bcopy. + Tue Jun 27 20:50:57 1995 Mark Eichin * configure.in: *int*_t are likely to collide with native types, diff --git a/src/util/berk_db/hash/configure.in b/src/util/berk_db/hash/configure.in index c2885e1ac..e70ffeb43 100644 --- a/src/util/berk_db/hash/configure.in +++ b/src/util/berk_db/hash/configure.in @@ -50,7 +50,7 @@ main() AC_MSG_RESULT($ac_cv_sizeof_dbt_size) AC_DEFINE_UNQUOTED(SIZEOF_DBT_SIZE, $ac_cv_sizeof_dbt_size) -AC_HAVE_FUNCS(mktemp mkstemp) +AC_CHECK_FUNCS(mktemp mkstemp memmove) CHECK_SIGNALS dnl dnl Check for sys/cdefs.h. diff --git a/src/util/berk_db/hash/hash.h b/src/util/berk_db/hash/hash.h index 913e82b40..94f848efc 100644 --- a/src/util/berk_db/hash/hash.h +++ b/src/util/berk_db/hash/hash.h @@ -291,3 +291,7 @@ typedef struct htab { /* Memory resident data structure */ #define MAGIC hdr.magic #define NEXT_FREE hdr.next_free #define H_CHARKEY hdr.h_charkey + +#ifndef HAVE_MEMMOVE +#define memmove(dst,src,len) bcopy(src,dst,len) +#endif -- 2.26.2