Commit 1200d71a authored by Tom Lane's avatar Tom Lane

Assume that we have memmove().

Windows has this, and so do all other live platforms according to the
buildfarm, so remove the configure probe and c.h's substitute code.

This is part of a series of commits to get rid of no-longer-relevant
configure checks and dead src/port/ code.  I'm committing them separately
to make it easier to back out individual changes if they prove less
portable than I expect.

Discussion: https://postgr.es/m/15379.1582221614@sss.pgh.pa.us
parent abe41f45
...@@ -14925,7 +14925,7 @@ fi ...@@ -14925,7 +14925,7 @@ fi
LIBS_including_readline="$LIBS" LIBS_including_readline="$LIBS"
LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'` LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
for ac_func in backtrace_symbols clock_gettime copyfile fdatasync getifaddrs getpeerucred getrlimit kqueue mbstowcs_l memset_s memmove poll posix_fallocate ppoll pstat pthread_is_threaded_np readlink setproctitle setproctitle_fast setsid shm_open strchrnul strsignal symlink sync_file_range uselocale utime utimes wcstombs_l for ac_func in backtrace_symbols clock_gettime copyfile fdatasync getifaddrs getpeerucred getrlimit kqueue mbstowcs_l memset_s poll posix_fallocate ppoll pstat pthread_is_threaded_np readlink setproctitle setproctitle_fast setsid shm_open strchrnul strsignal symlink sync_file_range uselocale utime utimes wcstombs_l
do : do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
......
...@@ -1627,7 +1627,6 @@ AC_CHECK_FUNCS(m4_normalize([ ...@@ -1627,7 +1627,6 @@ AC_CHECK_FUNCS(m4_normalize([
kqueue kqueue
mbstowcs_l mbstowcs_l
memset_s memset_s
memmove
poll poll
posix_fallocate posix_fallocate
ppoll ppoll
......
...@@ -1261,10 +1261,6 @@ extern long long strtoll(const char *str, char **endptr, int base); ...@@ -1261,10 +1261,6 @@ extern long long strtoll(const char *str, char **endptr, int base);
extern unsigned long long strtoull(const char *str, char **endptr, int base); extern unsigned long long strtoull(const char *str, char **endptr, int base);
#endif #endif
#if !defined(HAVE_MEMMOVE) && !defined(memmove)
#define memmove(d, s, c) bcopy(s, d, c)
#endif
/* no special DLL markers on most ports */ /* no special DLL markers on most ports */
#ifndef PGDLLIMPORT #ifndef PGDLLIMPORT
#define PGDLLIMPORT #define PGDLLIMPORT
......
...@@ -370,9 +370,6 @@ ...@@ -370,9 +370,6 @@
/* Define to 1 if you have the `mbstowcs_l' function. */ /* Define to 1 if you have the `mbstowcs_l' function. */
#undef HAVE_MBSTOWCS_L #undef HAVE_MBSTOWCS_L
/* Define to 1 if you have the `memmove' function. */
#undef HAVE_MEMMOVE
/* Define to 1 if you have the <memory.h> header file. */ /* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H #undef HAVE_MEMORY_H
......
...@@ -294,7 +294,6 @@ sub GenerateFiles ...@@ -294,7 +294,6 @@ sub GenerateFiles
HAVE_LONG_LONG_INT_64 => 1, HAVE_LONG_LONG_INT_64 => 1,
HAVE_MBARRIER_H => undef, HAVE_MBARRIER_H => undef,
HAVE_MBSTOWCS_L => 1, HAVE_MBSTOWCS_L => 1,
HAVE_MEMMOVE => 1,
HAVE_MEMORY_H => 1, HAVE_MEMORY_H => 1,
HAVE_MEMSET_S => undef, HAVE_MEMSET_S => undef,
HAVE_MINIDUMP_TYPE => 1, HAVE_MINIDUMP_TYPE => 1,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment