Changeset: 226a3be8c62f for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=226a3be8c62f
Modified Files:
        clients/mapilib/mapi.c
Branch: default
Log Message:

mapi.c: add alloca blurb to fix compilation on Solaris

mapi.c:2473: error: implicit declaration of function ?alloca?
http://monetdb.cwi.nl/testing/projects/monetdb/CurrentNew/logs/39194:176ae2b45904/GNU-Solaris-sparc/make.html#l98


diffs (24 lines):

diff --git a/clients/mapilib/mapi.c b/clients/mapilib/mapi.c
--- a/clients/mapilib/mapi.c
+++ b/clients/mapilib/mapi.c
@@ -800,6 +800,20 @@
 #include <malloc.h>
 #endif
 
+#ifdef HAVE_ALLOCA_H
+# include <alloca.h>
+#elif defined __GNUC__
+# define alloca __builtin_alloca
+#elif defined _AIX
+# define alloca __alloca
+#elif defined _MSC_VER
+# include <malloc.h>
+# define alloca _alloca
+#else
+# include <stddef.h>
+void *alloca(size_t);
+#endif
+
 #include  <signal.h>
 #include  <string.h>
 #include  <memory.h>
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to