#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
/* 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
-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`
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])