diff options
| author | Mark Eichin <eichin@mit.edu> | 1995-06-28 04:25:26 +0000 |
|---|---|---|
| committer | Mark Eichin <eichin@mit.edu> | 1995-06-28 04:25:26 +0000 |
| commit | 189ed05f74910699465b8fd61ef05c4c689ae04d (patch) | |
| tree | 0e0a23d9b274723bf05d8741b94d026a82647409 /src | |
| parent | 082895e3cc9421238356a5185d6762d4cdc9a0ac (diff) | |
* 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
Diffstat (limited to 'src')
| -rw-r--r-- | src/util/berk_db/hash/ChangeLog | 5 | ||||
| -rw-r--r-- | src/util/berk_db/hash/configure.in | 2 | ||||
| -rw-r--r-- | src/util/berk_db/hash/hash.h | 4 |
3 files changed, 10 insertions, 1 deletions
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 <eichin@cygnus.com> + + * 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 <eichin@cygnus.com> * 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 |
