aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2020-02-21 13:42:28 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2020-02-21 14:30:47 -0500
commit1200d71a09177b7e64167df440d0c9bd16111ebe (patch)
tree2c3a4e37a2683aade919aeaf5a788bdeed7a9924
parentabe41f453a5c42129e21825d75450aced0053eb8 (diff)
downloadpostgresql-1200d71a09177b7e64167df440d0c9bd16111ebe.tar.gz
postgresql-1200d71a09177b7e64167df440d0c9bd16111ebe.zip
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
-rwxr-xr-xconfigure2
-rw-r--r--configure.in1
-rw-r--r--src/include/c.h4
-rw-r--r--src/include/pg_config.h.in3
-rw-r--r--src/tools/msvc/Solution.pm1
5 files changed, 1 insertions, 10 deletions
diff --git a/configure b/configure
index 4041051d59f..8d38e792aad 100755
--- a/configure
+++ b/configure
@@ -14925,7 +14925,7 @@ fi
LIBS_including_readline="$LIBS"
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 :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
diff --git a/configure.in b/configure.in
index 7660c777670..86b1d298c60 100644
--- a/configure.in
+++ b/configure.in
@@ -1627,7 +1627,6 @@ AC_CHECK_FUNCS(m4_normalize([
kqueue
mbstowcs_l
memset_s
- memmove
poll
posix_fallocate
ppoll
diff --git a/src/include/c.h b/src/include/c.h
index 2e8b2d4e3fe..f2cc0338de6 100644
--- a/src/include/c.h
+++ b/src/include/c.h
@@ -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);
#endif
-#if !defined(HAVE_MEMMOVE) && !defined(memmove)
-#define memmove(d, s, c) bcopy(s, d, c)
-#endif
-
/* no special DLL markers on most ports */
#ifndef PGDLLIMPORT
#define PGDLLIMPORT
diff --git a/src/include/pg_config.h.in b/src/include/pg_config.h.in
index 9de9ae6631e..ef4c175c984 100644
--- a/src/include/pg_config.h.in
+++ b/src/include/pg_config.h.in
@@ -370,9 +370,6 @@
/* Define to 1 if you have the `mbstowcs_l' function. */
#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. */
#undef HAVE_MEMORY_H
diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm
index 81b0bf21282..56d52fc3310 100644
--- a/src/tools/msvc/Solution.pm
+++ b/src/tools/msvc/Solution.pm
@@ -294,7 +294,6 @@ sub GenerateFiles
HAVE_LONG_LONG_INT_64 => 1,
HAVE_MBARRIER_H => undef,
HAVE_MBSTOWCS_L => 1,
- HAVE_MEMMOVE => 1,
HAVE_MEMORY_H => 1,
HAVE_MEMSET_S => undef,
HAVE_MINIDUMP_TYPE => 1,