diff --git a/src/kernel/libroot/posix/string/Jamfile b/src/kernel/libroot/posix/string/Jamfile index d1a4e51146..2a0b30ad3e 100644 --- a/src/kernel/libroot/posix/string/Jamfile +++ b/src/kernel/libroot/posix/string/Jamfile @@ -1,6 +1,7 @@ SubDir OBOS_TOP src kernel libroot posix string ; KernelMergeObject posix_string.o : + bcmp.c bcopy.c bzero.c memchr.c diff --git a/src/kernel/libroot/posix/string/bcmp.c b/src/kernel/libroot/posix/string/bcmp.c new file mode 100644 index 0000000000..5c41eec710 --- /dev/null +++ b/src/kernel/libroot/posix/string/bcmp.c @@ -0,0 +1,22 @@ +/* +** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. +** Distributed under the terms of the Haiku License. +*/ + + +#include +#include + + +#ifdef bcmp +# undef bcmp +#endif + +int bcmp(void const *a, const void *b, size_t bytes); + +int +bcmp(void const *a, const void *b, size_t bytes) +{ + return memcmp(a, b, bytes); +} +