ruby-changes:50093
From: k0kubun <ko1@a...>
Date: Mon, 5 Feb 2018 00:40:10 +0900 (JST)
Subject: [ruby-changes:50093] k0kubun:r62211 (trunk): mjit.c: define __EXTENSIONS__ earlier
k0kubun 2018-02-05 00:40:06 +0900 (Mon, 05 Feb 2018) New Revision: 62211 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62211 Log: 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); ^ Modified files: trunk/mjit.c Index: mjit.c =================================================================== --- mjit.c (revision 62210) +++ mjit.c (revision 62211) @@ -69,6 +69,10 @@ https://github.com/ruby/ruby/blob/trunk/mjit.c#L69 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 @@ https://github.com/ruby/ruby/blob/trunk/mjit.c#L82 #include <dlfcn.h> #endif -#ifdef __sun -#define __EXTENSIONS__ 1 -#endif - #include "vm_core.h" #include "mjit.h" #include "version.h" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/