mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
Two fixes for Darwin 'make check'
mempcpy is not available on Darwin, so make it conditional like Solaris. also sys/auxv.h does not exist so make including it conditional.
This commit is contained in:
parent
3415e1e1ac
commit
e531f994c6
@ -43,7 +43,7 @@ void f(char* a, char* b, wchar_t* wa, wchar_t* wb) {
|
||||
memcpy (a, b, 1000); // Redirects to memmove
|
||||
memcpy (a, b, 1000); // Redirects to memmove
|
||||
memmove(a, b, 1000);
|
||||
#if defined(VGO_solaris)
|
||||
#if defined(VGO_solaris) || defined(VGO_darwin)
|
||||
memcpy(a, b, 1000);
|
||||
#else
|
||||
mempcpy(a, b, 1000);
|
||||
|
||||
@ -1,7 +1,9 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#if !defined(__APPLE__)
|
||||
#include <sys/auxv.h>
|
||||
#endif
|
||||
|
||||
// This file determines arm64 features a processor supports.
|
||||
// Arm processors do not have a x86-like cpuinfo instruction. Instead the
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user