]> granicus.if.org Git - sudo/commitdiff
use bcopy on systems w/o memmove
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 6 Feb 2005 03:56:38 +0000 (03:56 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 6 Feb 2005 03:56:38 +0000 (03:56 +0000)
compat.h
config.h.in
configure
configure.in

index f2cf8fb283ef47cc2e297ab40d3dc084a44508db..d514fcd2f9e0baf34747d3b0a2835455c6336dad 100644 (file)
--- a/compat.h
+++ b/compat.h
 #if !defined(HAVE_MEMCPY) && !defined(memcpy)
 # define memcpy(_d, _s, _n)    (bcopy(_s, _d, _n))
 #endif
+#if !defined(HAVE_MEMMOVE) && !defined(memmove)
+# define memmove(_d, _s, _n)   (bcopy(_s, _d, _n))
+#endif
 #if !defined(HAVE_MEMSET) && !defined(memset)
 # define memset(_s, _x, _n)    (bzero(_s, _n))
 #endif
index 5127192e5fadfd3cac4e4ecee6e82e4b8068e4bf..cc36c79f89ea854a9368d5efdf0ea742ea238a6d 100644 (file)
 /* Define to 1 if you have the `memcpy' function. */
 #undef HAVE_MEMCPY
 
+/* Define to 1 if you have the `memmove' function. */
+#undef HAVE_MEMMOVE
+
 /* Define to 1 if you have the <memory.h> header file. */
 #undef HAVE_MEMORY_H
 
index 3abc50b2b31e4c2ca1e2c31ab461cd72da62d153..9a9c091c6d8211f77ba8ff1e1de1dc2e5dbbbb07 100755 (executable)
--- a/configure
+++ b/configure
@@ -25909,7 +25909,8 @@ esac
 
 
 
-for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
+
+for ac_func in strchr strrchr memchr memcpy memmove memset sysconf tzset \
               strftime setrlimit initgroups getgroups fstat gettimeofday
 do
 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
index 5a80e8fa384f21871752dbadca3cf734cedb99e1..3a4b469c8f0ad2486a405faeb0418e51792d6a79 100644 (file)
@@ -1724,7 +1724,7 @@ esac
 dnl
 dnl Function checks
 dnl
-AC_CHECK_FUNCS(strchr strrchr memchr memcpy memset sysconf tzset \
+AC_CHECK_FUNCS(strchr strrchr memchr memcpy memmove memset sysconf tzset \
               strftime setrlimit initgroups getgroups fstat gettimeofday)
 if test -z "$SKIP_SETRESUID"; then
     AC_CHECK_FUNCS(setresuid, [SKIP_SETREUID=yes])