From 387f15d8951f23ebb9c87e5a983c1c38be93a6aa Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Sun, 24 Oct 1999 16:41:07 +0000 Subject: [PATCH] Define USE_BCOPY, if memmove is not found (i.e. SunOS 4). Fix for #2480 --- ext/pcre/config.h.stub | 1 + ext/pcre/config.m4 | 2 ++ ext/pcre/config0.m4 | 2 ++ 3 files changed, 5 insertions(+) diff --git a/ext/pcre/config.h.stub b/ext/pcre/config.h.stub index 149f740cc1..128deea9ab 100644 --- a/ext/pcre/config.h.stub +++ b/ext/pcre/config.h.stub @@ -2,3 +2,4 @@ #define HAVE_PCRE 0 #define HAVE_BUNDLED_PCRE 0 +#undef USE_BCOPY diff --git a/ext/pcre/config.m4 b/ext/pcre/config.m4 index 09a6a6a91d..729e99e52d 100644 --- a/ext/pcre/config.m4 +++ b/ext/pcre/config.m4 @@ -60,3 +60,5 @@ AC_ARG_WITH(pcre-regex, ]) AC_SUBST(PCRE_LIBADD) AC_SUBST(PCRE_SUBDIRS) + +AC_CHECK_FUNC(memmove, [], [AC_DEFINE(USE_BCOPY, 1)]) diff --git a/ext/pcre/config0.m4 b/ext/pcre/config0.m4 index 09a6a6a91d..729e99e52d 100644 --- a/ext/pcre/config0.m4 +++ b/ext/pcre/config0.m4 @@ -60,3 +60,5 @@ AC_ARG_WITH(pcre-regex, ]) AC_SUBST(PCRE_LIBADD) AC_SUBST(PCRE_SUBDIRS) + +AC_CHECK_FUNC(memmove, [], [AC_DEFINE(USE_BCOPY, 1)]) -- 2.50.1