Bug 1065 – On OpenBSD, alloca(3) is in stdlib.h

Status
RESOLVED
Resolution
FIXED
Severity
blocker
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Other
Creation time
2007-03-16T08:13:00Z
Last change time
2015-06-09T01:31:20Z
Assigned to
dvdfrdmn
Creator
madou

Comments

Comment #0 by madou — 2007-03-16T08:13:40Z
--- gcc-4.1.2-old/gcc/d/gdc_alloca.h Tue Nov 14 15:28:31 2006 +++ gcc-4.1.2/gcc/d/gdc_alloca.h Sun Mar 11 20:19:58 2007 @@ -8,7 +8,7 @@ # include <alloca.h> # elif SKYOS # define alloca __builtin_alloca -# elif defined(__APPLE__) && (GCC_VER <= 33) +# elif (defined(__APPLE__) && (GCC_VER <= 33)) || defined(__OpenBSD__) # include <stdlib.h> # else /* guess... */
Comment #1 by dvdfrdmn — 2007-07-22T10:52:00Z
Patch applied to svn r132 / release 0.24. I do not have a OpenBSD system, so please confirm it works.
Comment #2 by madou — 2007-07-22T17:55:45Z
Works fine on OpenBSD 4.1-stable