summaryrefslogtreecommitdiff
path: root/mjit.c
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-04 13:49:38 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-04 13:49:38 +0000
commitec7dd299020812f83b438f0c05dde8f079772087 (patch)
tree3226c2aa133ef3b4c2d3bacb14c55767a46aa143 /mjit.c
parent7f7a49febeb3301b18f93a7f5199964eb138e69d (diff)
mjit.c: another try for fixing solaris build
Reverted r62192 and added another try. I prepared Solaris environment but I couldn't reproduce the RubyCI build failure. So I'm testing on trunk. I found the following article and it fixed the same problem with passing `-D__EXTENSIONS__`. So this commit defines `__EXTENSIONS__` for Solaris. https://bitbucket.org/ged/ruby-pg/issues/236/compile-error-usr-include-signalh-92-1 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mjit.c')
-rw-r--r--mjit.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mjit.c b/mjit.c
index 826c5b3a13..c3ed401139 100644
--- a/mjit.c
+++ b/mjit.c
@@ -78,7 +78,10 @@
#include <dlfcn.h>
#endif
-#include "internal.h"
+#ifdef __sun
+#define __EXTENSIONS__ 1
+#endif
+
#include "vm_core.h"
#include "mjit.h"
#include "version.h"