Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS (aarch64): fix compilation error #19

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

7phs
Copy link

@7phs 7phs commented Feb 2, 2025

This PR fixes compilation errors when building ffmpeg (Zig) on MacOS 15.2 (M1, aarch64).

Fixes:

  1. Error 1 OS_CODE macro redefined – resolved by updating zlib to the latest version.
  2. Error 2 sys/prctl.h not found and _DARWIN_C_SOURCE macro redefined – fixed by conditionally disabling prctl for MacOS.

There are still some linker issues. I think it would be best to address them in a separate PR or issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant