diff --git a/src/misc/string.c b/src/misc/string.c index de450ca0e..91ef88841 100644 --- a/src/misc/string.c +++ b/src/misc/string.c @@ -407,7 +407,6 @@ stripWhiteSpacesInsideParens(char *str) #ifndef HAVE_BCOPY - #ifndef bcopy void bcopy(const void *vfrom, void *vto, size_t num) @@ -419,7 +418,9 @@ bcopy(const void *vfrom, void *vto, size_t num) return; } #endif +#endif +#ifndef HAVE_BZERO #ifndef bzero void bzero(void *vptr, size_t num) @@ -429,7 +430,6 @@ bzero(void *vptr, size_t num) *ptr++ = '\0'; return; } - #endif #endif diff --git a/src/misc/stringutil.h b/src/misc/stringutil.h index b426035ca..b6cd0fb45 100644 --- a/src/misc/stringutil.h +++ b/src/misc/stringutil.h @@ -30,11 +30,12 @@ int cimatch(register char *p, register char *s); #endif #ifndef HAVE_BCOPY - void bcopy(const void *from, void *to, size_t num); -void bzero(void *ptr, size_t num); +#endif -#endif /* HAVE_BCOPY */ +#ifndef HAVE_BZERO +void bzero(void *ptr, size_t num); +#endif bool isquote(char ch); bool is_arith_char(char c);