libaom: skip _POSIX_C_SOURCE patch on Darwin

This should possibly be a conditional in the patch itself, but I
don’t know what the appropriate CMake conditional would be.
This commit is contained in:
Emily
2024-09-23 17:06:41 +01:00
parent 744ccbf84f
commit a2be902537
@@ -23,7 +23,9 @@ stdenv.mkDerivation rec {
patches = [
./outputs.patch
] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [
# This patch defines `_POSIX_C_SOURCE`, which breaks system headers
# on Darwin.
(fetchurl {
name = "musl.patch";
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-libs/libaom/files/libaom-3.4.0-posix-c-source-ftello.patch?id=50c7c4021e347ee549164595280cf8a23c960959";