1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
k0kubun 2018-02-04 15:40:06 +00:00
parent 1f2293dfe5
commit 2c179b12de

8
mjit.c
View file

@ -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"