From a791584fcdb7d580494680fbbcca3e3f880b78bf Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sat, 10 Sep 2016 08:46:18 -0600 Subject: [PATCH] Unconditionally define memcmp() if not sane Prior to this commit, if there was a #define for memcmp that invoked a version that Configure deemed to not be sufficient for normal use, it was retained, so that perl used the defective version. This apparently hasn't been a problem in the field, but I realized the potential issue doing code reading, and am correcting it. --- perl.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/perl.h b/perl.h index f1914a8b56e4..454304b13772 100644 --- a/perl.h +++ b/perl.h @@ -1041,9 +1041,8 @@ EXTERN_C int usleep(unsigned int); # endif # endif #else -# ifndef memcmp -# define memcmp my_memcmp -# endif +# undef memcmp +# define memcmp my_memcmp #endif /* HAS_MEMCMP && HAS_SANE_MEMCMP */ #ifndef memzero