[Issue 1065] New: On OpenBSD, alloca(3) is in stdlib.h

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Mar 16 06:13:53 PDT 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 at users.sf.net
        ReportedBy: madou at 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... */


-- 



More information about the D.gnu mailing list