mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
configure.ac: check clockid_t with necessary headers
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
def3714be2
commit
673ae0e3c9
1 changed files with 6 additions and 8 deletions
14
configure.ac
14
configure.ac
|
@ -1166,7 +1166,12 @@ RUBY_REPLACE_TYPE(rlim_t, [int long "long long"], RLIM, [
|
||||||
@%:@include <sys/resource.h>
|
@%:@include <sys/resource.h>
|
||||||
])
|
])
|
||||||
RUBY_REPLACE_TYPE(off_t, [], OFFT)
|
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_CACHE_CHECK(for prototypes, rb_cv_have_prototypes,
|
||||||
[AC_TRY_COMPILE([int foo(int x) { return 0; }], [return foo(10);],
|
[AC_TRY_COMPILE([int foo(int x) { return 0; }], [return foo(10);],
|
||||||
|
@ -1540,13 +1545,6 @@ AC_CHECK_TYPES([struct timezone], [], [], [@%:@ifdef HAVE_TIME_H
|
||||||
@%:@ include <sys/time.h>
|
@%:@ include <sys/time.h>
|
||||||
@%:@endif])
|
@%:@endif])
|
||||||
|
|
||||||
AC_CHECK_TYPES([clockid_t], [], [], [@%:@ifdef HAVE_TIME_H
|
|
||||||
@%:@ include <time.h>
|
|
||||||
@%:@endif
|
|
||||||
@%:@ifdef HAVE_SYS_TIME_H
|
|
||||||
@%:@ include <sys/time.h>
|
|
||||||
@%:@endif])
|
|
||||||
|
|
||||||
AC_CACHE_VAL([rb_cv_large_fd_select],
|
AC_CACHE_VAL([rb_cv_large_fd_select],
|
||||||
[AC_CHECK_TYPE(fd_mask, [rb_cv_large_fd_select=yes], [rb_cv_large_fd_select=no], [AC_INCLUDES_DEFAULT([])
|
[AC_CHECK_TYPE(fd_mask, [rb_cv_large_fd_select=yes], [rb_cv_large_fd_select=no], [AC_INCLUDES_DEFAULT([])
|
||||||
@%:@ifdef HAVE_SYS_SELECT_H
|
@%:@ifdef HAVE_SYS_SELECT_H
|
||||||
|
|
Loading…
Reference in a new issue