ruby-changes:50331
From: nobu <ko1@a...>
Date: Sat, 17 Feb 2018 14:23:01 +0900 (JST)
Subject: [ruby-changes:50331] nobu:r62446 (trunk): configure.ac: check clockid_t with necessary headers
nobu 2018-02-17 14:22:56 +0900 (Sat, 17 Feb 2018) New Revision: 62446 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62446 Log: configure.ac: check clockid_t with necessary headers Modified files: trunk/configure.ac Index: configure.ac =================================================================== --- configure.ac (revision 62445) +++ configure.ac (revision 62446) @@ -1166,7 +1166,12 @@ RUBY_REPLACE_TYPE(rlim_t, [int long "lon https://github.com/ruby/ruby/blob/trunk/configure.ac#L1166 @%:@include <sys/resource.h> ]) RUBY_REPLACE_TYPE(off_t, [], OFFT) -RUBY_REPLACE_TYPE(clockid_t, [], CLOCKID) +RUBY_REPLACE_TYPE(clockid_t, [], CLOCKID, [@%:@ifdef HAVE_TIME_H +@%:@ include <time.h> +@%:@endif +@%:@ifdef HAVE_SYS_TIME_H +@%:@ include <sys/time.h> +@%:@endif]) AC_CACHE_CHECK(for prototypes, rb_cv_have_prototypes, [AC_TRY_COMPILE([int foo(int x) { return 0; }], [return foo(10);], @@ -1537,13 +1542,6 @@ AC_CHECK_TYPES([struct timezone], [], [] https://github.com/ruby/ruby/blob/trunk/configure.ac#L1542 @%:@ include <time.h> @%:@endif @%:@ifdef HAVE_SYS_TIME_H -@%:@ include <sys/time.h> -@%:@endif]) - -AC_CHECK_TYPES([clockid_t], [], [], [@%:@ifdef HAVE_TIME_H -@%:@ include <time.h> -@%:@endif -@%:@ifdef HAVE_SYS_TIME_H @%:@ include <sys/time.h> @%:@endif]) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/