--- configure.in.orig	2008-05-23 18:17:56
+++ configure.in	2024-02-01 09:39:49
@@ -275,6 +275,9 @@
   libelf_cv_working_memmove,
   [AC_TRY_RUN(changequote(<<, >>)dnl
 <<#include "confdefs.h"
+#if HAVE_STRING_H
+#include <string.h>
+#else
 #if HAVE_MEMMOVE
 extern void *memmove();
 #else
@@ -282,11 +285,12 @@
 #define memmove(d,s,n) bcopy((s),(d),(n))
 #endif
 extern int strcmp();
-main() {
+#endif
+int main(void) {
   char buf[] = "0123456789";
   memmove(buf + 1, buf, 9);
-  if (strcmp(buf, "0012345678")) exit(1);
-  exit(0);
+  if (strcmp(buf, "0012345678")) return (1);
+  return (0);
 }>>, changequote([, ])dnl
     libelf_cv_working_memmove=yes,
     libelf_cv_working_memmove=no,