configure.in: check struct timeval exist or not.
include/ruby/missing.h (struct timeval): check HAVE_STRUCT_TIMEVAL properly. and don't include sys/time.h if struct timeval exist.
file.c: include sys/time.h explicitly.
random.c: ditto.
thread_pthread.c: ditto.
time.c: ditto.
ext/date/date_strftime.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
configure.in: check struct timeval exist or not.
include/ruby/missing.h (struct timeval): check HAVE_STRUCT_TIMEVAL
properly. and don't include sys/time.h if struct timeval exist.
file.c: include sys/time.h explicitly.
random.c: ditto.
thread_pthread.c: ditto.
time.c: ditto.
ext/date/date_strftime.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e