Skip to content

Not all systems define MAP_FAILED for the return value from failing mmap() #502

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

Merged
merged 1 commit into from
May 13, 2024

Conversation

nbriggs
Copy link
Collaborator

@nbriggs nbriggs commented May 8, 2024

If MAP_FAILED is not defined after including <sys/mman.h> then define it to be (void *)-1

@nbriggs nbriggs merged commit 4becc6a into master May 13, 2024
@waywardmonkeys
Copy link
Contributor

What system isn't defining this? It seems to be SuSv2, so over 25 years old at this point...

@nbriggs
Copy link
Collaborator Author

nbriggs commented May 14, 2024

AmigaOS

@waywardmonkeys
Copy link
Contributor

Probably deserves a comment or something since that is pretty obscure.

@nbriggs nbriggs deleted the fix-missing-map-failed branch May 22, 2024 23:21
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.

2 participants