[Msan] Make unit tests that use mempcpy() passing on FreeBSD

Differential Revision: http://reviews.llvm.org/D7588

llvm-svn: 229388
This commit is contained in:
Viktor Kutuzov 2015-02-16 13:26:32 +00:00
parent 1a55126699
commit b1f54eeed4
1 changed files with 6 additions and 0 deletions

View File

@ -80,6 +80,12 @@ int shmdt(const void *);
# include <net/ethernet.h>
# define f_namelen f_namemax // FreeBSD names this statfs field so.
# define cpu_set_t cpuset_t
extern "C" {
// FreeBSD's <ssp/string.h> defines mempcpy() to be a macro expanding into
// a __builtin___mempcpy_chk() call, but since Msan RTL defines it as an
// ordinary function, we can declare it here to complete the tests.
void *mempcpy(void *dest, const void *src, size_t n);
}
#endif
#if defined(__i386__) || defined(__x86_64__)