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:
Paul Floyd 2021-03-17 09:12:21 +01:00
parent 3415e1e1ac
commit e531f994c6
2 changed files with 3 additions and 1 deletions

View File

@ -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);

View File

@ -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