Skip to content

embed: Fix alloca include for FreeBSD and NetBSD. #13360

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
Jan 7, 2024
Merged

embed: Fix alloca include for FreeBSD and NetBSD. #13360

merged 1 commit into from
Jan 7, 2024

Conversation

darcagn
Copy link
Contributor

@darcagn darcagn commented Jan 5, 2024

When building the embedded port on FreeBSD, I receive the following error:

fatal error: alloca.h: No such file or directory
   36 | #include <alloca.h>
      |          ^~~~~~~~~~

FreeBSD/NetBSD doesn't include alloca.h, but alloca() is provided via stdlib.h instead. This PR allows it to build properly on those platforms.

@darcagn darcagn closed this Jan 5, 2024
@darcagn darcagn reopened this Jan 5, 2024
@darcagn darcagn changed the title embed port: fix mpconfigport_common.h alloca include for FreeBSD and NetBSD embed port: Fix alloca include for FreeBSD and NetBSD. Jan 5, 2024
Signed-off-by: darc <darcagn@protonmail.com>
@darcagn darcagn changed the title embed port: Fix alloca include for FreeBSD and NetBSD. embed: Fix alloca include for FreeBSD and NetBSD. Jan 5, 2024
@dpgeorge dpgeorge merged commit 80fd575 into micropython:master Jan 7, 2024
@dpgeorge
Copy link
Member

dpgeorge commented Jan 7, 2024

Thank you!

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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy