Thread overview
[Issue 1065] New: On OpenBSD, alloca(3) is in stdlib.h
Mar 16, 2007
d-bugmail
Jul 22, 2007
d-bugmail
Jul 22, 2007
d-bugmail
March 16, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1065

           Summary: On OpenBSD, alloca(3) is in stdlib.h
           Product: DGCC aka GDC
           Version: 0.23
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: glue layer
        AssignedTo: dvdfrdmn@users.sf.net
        ReportedBy: madou@madou.org


--- 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... */


-- 

July 22, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1065


dvdfrdmn@users.sf.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED




------- Comment #1 from dvdfrdmn@users.sf.net  2007-07-22 10:52 -------
Patch applied to svn r132 / release 0.24.  I do not have a OpenBSD system, so please confirm it works.


-- 

July 22, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1065


madou@madou.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED




------- Comment #2 from madou@madou.org  2007-07-22 17:55 -------
Works fine on OpenBSD 4.1-stable


--