nixpkgs/pkgs/servers/pulseaudio/0003-Ignore-HAVE_CPUID_H-on-aarch64-darwin.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
679 B
Diff
Raw Normal View History

2022-08-02 16:39:28 +00:00
diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c
index c383a61c0..3d0a68c2e 100644
--- a/src/pulsecore/core-util.c
+++ b/src/pulsecore/core-util.c
@@ -110,7 +110,7 @@
#include <sys/personality.h>
#endif
-#ifdef HAVE_CPUID_H
+#if defined(HAVE_CPUID_H) && !(defined(__APPLE__) && defined(__aarch64__))
#include <cpuid.h>
#endif
diff --git a/src/pulsecore/cpu-x86.c b/src/pulsecore/cpu-x86.c
index 317a0101e..d1eb95d2b 100644
--- a/src/pulsecore/cpu-x86.c
+++ b/src/pulsecore/cpu-x86.c
@@ -24,7 +24,7 @@
#include <stdint.h>
-#ifdef HAVE_CPUID_H
+#if defined(HAVE_CPUID_H) && !(defined(__APPLE__) && defined(__aarch64__))
#include <cpuid.h>
#endif