Try to fix the mac buildbots

llvm-svn: 181440
This commit is contained in:
Peter Collingbourne 2013-05-08 15:07:12 +00:00
parent 2f34cacc3b
commit 8e110ce57c
1 changed files with 5 additions and 4 deletions

View File

@ -39,18 +39,19 @@
#include <sys/types.h>
#include <unistd.h>
#include <libkern/OSAtomic.h>
#include <errno.h>
namespace __sanitizer {
#include "sanitizer_syscall_generic.inc"
// ---------------------- sanitizer_libc.h
void *internal_mmap(void *addr, size_t length, int prot, int flags,
int fd, u64 offset) {
return mmap(addr, length, prot, flags, fd, offset);
uptr internal_mmap(void *addr, size_t length, int prot, int flags,
int fd, u64 offset) {
return (uptr)mmap(addr, length, prot, flags, fd, offset);
}
int internal_munmap(void *addr, uptr length) {
uptr internal_munmap(void *addr, uptr length) {
return munmap(addr, length);
}