alloca.h is not available on BSDs

Bug #2019954 reported by Sven M. Hallberg
6
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.

Revision history for this message
Sven M. Hallberg (pesco) wrote :
description: updated
description: updated
Revision history for this message
Sven M. Hallberg (pesco) wrote :

FWIW, FreeBSD and NetBSD also declare alloca() in <stdlib.h>.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.