From 69adb356c40e33bb015e98d549c2c9538619b32e Mon Sep 17 00:00:00 2001 From: Martin Nilsson <nilsson@opera.com> Date: Wed, 3 Sep 2014 19:58:22 +0200 Subject: [PATCH] bcopy was deprecated 2001. --- src/configure.in | 1 - src/port.c | 2 +- src/port.h | 9 ++------- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/configure.in b/src/configure.in index 94ee813d35..9798733eb0 100644 --- a/src/configure.in +++ b/src/configure.in @@ -4545,7 +4545,6 @@ fi AC_CHECK_FUNCS( \ _crypt \ poll \ - bcopy \ clock \ closefrom \ crypt \ diff --git a/src/port.c b/src/port.c index 8ca9113326..fff4c729fd 100644 --- a/src/port.c +++ b/src/port.c @@ -262,7 +262,7 @@ PMOD_EXPORT int STRCASECMP(const char *a,const char *b) } #endif -#if !defined(HAVE_MEMCPY) && !defined(HAVE_BCOPY) +#indef HAVE_MEMCPY PMOD_EXPORT void MEMCPY(void *bb,const void *aa,size_t s) { if(!s) return; diff --git a/src/port.h b/src/port.h index ab31706532..ecfa659a95 100644 --- a/src/port.h +++ b/src/port.h @@ -174,14 +174,9 @@ PMOD_EXPORT int STRCASECMP(const char *a,const char *b); #define MEMSET memset #ifndef HAVE_MEMCPY -# ifdef HAVE_BCOPY -# define MEMCPY(X,Y,Z) bcopy(Y,X,Z) -# define __builtin_memcpy(X,Y,Z) bcopy(Y,X,Z) -# else void MEMCPY(void *b,const void *a,size_t s); -# define __builtin_memcpy MEMCPY -# endif -# else +# define __builtin_memcpy MEMCPY +#else # define MEMCPY(X,Y,Z) memcpy((char*)(X),(char*)(Y),(Z)) #endif -- GitLab