[前][次][番号順一覧][スレッド一覧]

ruby-changes:50074

From: k0kubun <ko1@a...>
Date: Sun, 4 Feb 2018 16:53:00 +0900 (JST)
Subject: [ruby-changes:50074] k0kubun:r62192 (trunk): mjit.c: try to fix Solaris build failure

k0kubun	2018-02-04 16:52:54 +0900 (Sun, 04 Feb 2018)

  New Revision: 62192

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62192

  Log:
    mjit.c: try to fix Solaris build failure
    
    In file included from vm_core.h:87:0,
                     from mjit.c:81:
    /usr/include/signal.h:71:29: error: unknown type name 'procset_t'
     extern int sigsendset(const procset_t *, int);
                                 ^
    In file included from mjit.c:81:0:
    vm_core.h:90:16: error: '_SIGMAX' undeclared here (not in a function)
     # define NSIG (_SIGMAX + 1)      /* For QNX */
                    ^
    vm_core.h:93:19: note: in expansion of macro 'NSIG'
     #define RUBY_NSIG NSIG
    
    Errors come from vm_core.h. But obviously I don't touch those parts.
    So I guess we need something before vm_core.h.
    I included internal.h before vm_core.h so that the situation becomes the
    same as cont.c.

  Modified files:
    trunk/mjit.c
Index: mjit.c
===================================================================
--- mjit.c	(revision 62191)
+++ mjit.c	(revision 62192)
@@ -78,6 +78,7 @@ https://github.com/ruby/ruby/blob/trunk/mjit.c#L78
 #include <dlfcn.h>
 #endif
 
+#include "internal.h"
 #include "vm_core.h"
 #include "mjit.h"
 #include "version.h"

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]