alloca.h is not available on BSDs
Bug #2019954 reported by
Sven M. Hallberg
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gEDA |
New
|
Undecided
|
Unassigned |
Bug Description
Noticed when porting to OpenBSD:
The files normalize.c and validate.c in xorn/tests/storage/ use the alloca() function and include <alloca.h> for its prototype. That header is specific to glibc and not available at least on OpenBSD. The attached patch changes the includes to <stdlib.h> which works on both systems.
To post a comment you must log in.
FWIW, FreeBSD and NetBSD also declare alloca() in <stdlib.h>.