[ruby-cvs:69408] k0kubun:r62227 (trunk): mjit.c: try changing the order of includes

k0kubun at ruby-lang.org k0kubun at ruby-lang.org
Mon Feb 5 21:33:37 JST 2018


k0kubun	2018-02-05 21:33:36 +0900 (Mon, 05 Feb 2018)

  New Revision: 62227

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

  Log:
    mjit.c: try changing the order of includes
    
    Hoping to fix the AIX's build failure like:
    
    In file included from ./include/ruby/defines.h:139:0,
                     from ./include/ruby/ruby.h:29,
                     from ./include/ruby.h:33,
                     from internal.h:15,
                     from mjit.c:81:
    /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.1/include-fixed/unistd.h:939:14: error: conflicting types for 'ftruncate64'
      extern int  ftruncate64(int, off64_t);
                  ^
    In file included from ./include/ruby/defines.h:139:0,
                     from ./include/ruby/ruby.h:29,
                     from ./include/ruby.h:33,
                     from internal.h:15,
                     from mjit.c:81:
    /opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.1/include-fixed/unistd.h:937:14: note: previous declaration of 'ftruncate64' was here
      extern int  ftruncate(int, off_t);
                  ^

  Modified files:
    trunk/mjit.c


More information about the ruby-cvs mailing list