aboutsummaryrefslogtreecommitdiffstats
path: root/mjit.c
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-04 15:40:06 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-04 15:40:06 +0000
commit2c179b12de1ac33bec915217ac5c88037d5e810d (patch)
treeb57844cdbd5ada6e524fc72d85a3374eccc34c40 /mjit.c
parent1f2293dfe53c948b7f9cb9c832083789f8daa026 (diff)
downloadruby-2c179b12de1ac33bec915217ac5c88037d5e810d.tar.gz
mjit.c: define __EXTENSIONS__ earlier
Another try of r62204 and r62192. As far as I can see from solaris's signal.h and sys/procset.h, the only possibility that causes the following error would be that sys/procset.h is included without __EXTENSIONS__ and signal.h included it again but it doesn't define procset_t. Let's define __EXTENSIONS__ from first. --- In file included from vm_core.h:87:0, from mjit.c:85: /usr/include/signal.h:77:29: error: unknown type name 'procset_t' extern int sigsendset(const procset_t *, int); ^ git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mjit.c')
-rw-r--r--mjit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mjit.c b/mjit.c
index c3ed401139..28ad5ca917 100644
--- a/mjit.c
+++ b/mjit.c
@@ -69,6 +69,10 @@
constraint. So the correct version of code based on SIGCHLD and
WNOHANG waitpid would be very complicated. */
+#ifdef __sun
+#define __EXTENSIONS__ 1
+#endif
+
#ifdef _WIN32
#include <winsock2.h>
#include <windows.h>
@@ -78,10 +82,6 @@
#include <dlfcn.h>
#endif
-#ifdef __sun
-#define __EXTENSIONS__ 1
-#endif
-
#include "vm_core.h"
#include "mjit.h"
#include "version.h"