summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libguile/memmove.c24
-rw-r--r--libguile/scmconfig.h.in3
2 files changed, 24 insertions, 3 deletions
diff --git a/libguile/memmove.c b/libguile/memmove.c
new file mode 100644
index 000000000..f5aab3ac6
--- /dev/null
+++ b/libguile/memmove.c
@@ -0,0 +1,24 @@
+/* Wrapper to implement ANSI C's memmove using BSD's bcopy. */
+/* This function is in the public domain. --Per Bothner. */
+
+#include <sys/types.h>
+
+#ifdef __STDC__
+#define PTR void *
+#define CPTR const void *
+PTR memmove (PTR, CPTR, size_t);
+#else
+#define PTR char *
+#define CPTR char *
+PTR memmove ();
+#endif
+
+PTR
+memmove (s1, s2, n)
+ PTR s1;
+ CPTR s2;
+ size_t n;
+{
+ bcopy (s2, s1, n);
+ return s1;
+}
diff --git a/libguile/scmconfig.h.in b/libguile/scmconfig.h.in
index 48f18a5d0..4412efdd8 100644
--- a/libguile/scmconfig.h.in
+++ b/libguile/scmconfig.h.in
@@ -176,9 +176,6 @@
/* Define if you have the atexit function. */
#undef HAVE_ATEXIT
-/* Define if you have the bcopy function. */
-#undef HAVE_BCOPY
-
/* Define if you have the bzero function. */
#undef HAVE_BZERO