diff --git a/src/include/regex/utils.h b/src/include/regex/utils.h
index cbab44259e0703849630675ebf186c96e3a38f8d..e2d8b6cda36aa10c2ec4928defecb94637ab5ec7 100644
--- a/src/include/regex/utils.h
+++ b/src/include/regex/utils.h
@@ -49,9 +49,8 @@ typedef unsigned char uch;
 #define	NDEBUG	/* no assertions please */
 #endif
 #endif
-#include <assert.h>
 
 /* for old systems with bcopy() but no memmove() */
-#if defined(PORTNAME_sparc)
+#if !defined(HAVE_MEMMOVE)
 #define	memmove(d, s, c)	bcopy(s, d, c)
 #endif