Permalink
Browse files

Fix JRUBY-6877

cext object.cpp and struct.cpp require including alloca.h on Solaris

Patch by Clayton O'Neill.
  • Loading branch information...
1 parent b37a0bd commit eca1076aac35b3c52d77d4d832dfe7e171e962df @headius headius committed Sep 4, 2012
Showing with 6 additions and 0 deletions.
  1. +3 −0 cext/src/object.cpp
  2. +3 −0 cext/src/struct.cpp
View
@@ -21,6 +21,9 @@
#include <stdio.h>
#include <stdlib.h>
+#ifdef __sun
+ #include <alloca.h>
+#endif
#include "jruby.h"
#include "ruby.h"
#include "JLocalEnv.h"
View
@@ -16,6 +16,9 @@
* version 3 along with this work. If not, see <http://www.gnu.org/licenses/>.
*/
+#ifdef __sun
+ #include <alloca.h>
+#endif
#include "ruby.h"
#include "jruby.h"
#include "JLocalEnv.h"

0 comments on commit eca1076

Please sign in to comment.