mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
move struct timeval to missing.h
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9d29825355
commit
c7e16e94e4
6 changed files with 13 additions and 54 deletions
10
random.c
10
random.c
|
@ -144,16 +144,6 @@ genrand_real()
|
|||
#include <unistd.h>
|
||||
#endif
|
||||
#include <time.h>
|
||||
#ifndef NT
|
||||
#ifdef HAVE_SYS_TIME_H
|
||||
# include <sys/time.h>
|
||||
#else
|
||||
struct timeval {
|
||||
long tv_sec; /* seconds */
|
||||
long tv_usec; /* and microseconds */
|
||||
};
|
||||
#endif
|
||||
#endif /* NT */
|
||||
|
||||
static int first = 1;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue