added CMK_HAS_ALLOCA_H flag before including alloca.h
authorFilippo Gioachin <gioachin@illinois.edu>
Sun, 20 Nov 2005 06:46:38 +0000 (06:46 +0000)
committerFilippo Gioachin <gioachin@illinois.edu>
Sun, 20 Nov 2005 06:46:38 +0000 (06:46 +0000)
src/ck-com/ComlibSectionInfo.C

index 31830cadb7793b8a1da6596b5a86a872248d848f..5c52387f78ac8215d12c375fbef2ac0b80a5f4a6 100644 (file)
@@ -1,4 +1,8 @@
+#include "charm++.h" // for CMK_HAS_ALLOCA_H
+
+#if CMK_HAS_ALLOCA_H
 #include <alloca.h>
+#endif
 
 #include "ComlibManager.h"
 #include "ComlibSectionInfo.h"