--- compat.h.orig Sun Jun 15 16:59:27 2003 +++ compat.h Sun Jun 15 17:03:10 2003 @@ -91,7 +91,8 @@ #define bcopy(a, b, n) memmove(b, a, n) #endif -#if defined(BSD) || defined(BSD4_3) +#if !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)) \ + && (defined(BSD) || defined(BSD4_3)) #define strchr(a, b) index(a, b) #define strrchr(a, b) rindex(a, b) #define memcmp(a, b, n) bcmp(a, b, n)