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

Remove include of <alloca.h> #490

Closed
wants to merge 1 commit into from
Closed

Remove include of <alloca.h> #490

wants to merge 1 commit into from

Conversation

abs0
Copy link

@abs0 abs0 commented Oct 2, 2023

alloca.h has been deprecated for a long time, and no modern system should need it (and some do not even have it). While there are some references to alloca() in the source, none are in src/apsw.c

Fixes build on at least NetBSD

alloca.h has been deprecated for a long time, and no modern system
should need it (and some do not even have it). While there are some
references to alloca() in the source, none are in src/apsw.c

Fixes build on at least NetBSD
@rogerbinns
Copy link
Owner

Thanks for reporting this. alloca is only used because Microsoft compilers don't support VLAs. Linux does document although as you state it probably isn't necessary.

This is being addressed via #487

@rogerbinns rogerbinns closed this Oct 2, 2023
netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this pull request Oct 2, 2023
alloca.h has been deprecated for a long time, and no modern system
should need it (and some do not even have it). While there are some
references to alloca() in the source, none are in src/apsw.c

Fixes build on at least NetBSD

rogerbinns/apsw#490
@rogerbinns
Copy link
Owner

I've just released APSW 3.43.1.1 which fixes this - alloca only used with msvc. You shouldn't need your patch any more.

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.

None yet

2 participants