diff --git a/src/configure.in b/src/configure.in index 94ee813d354e58b5eaef271283ba4d8df5296afc..9798733eb0f24ae98e22a578ee19aed3c5850750 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 8ca91133265a2b1b9338e0df68e7e37e5dbcb653..fff4c729fd8c460686710b4d697cea98e31ed1ca 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 ab317065321759f368f8a20999fbcf971c8a84dd..ecfa659a957e3d6210da7034d5f3f49bf9e43d3c 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