diff options
author | Craig A. Berry <craigberry@mac.com> | 2015-07-02 17:49:48 -0500 |
---|---|---|
committer | Craig A. Berry <craigberry@mac.com> | 2015-07-02 20:32:19 -0500 |
commit | 95a8bf056d926c05c7ee65397256d9d065a83699 (patch) | |
tree | 076a9f43f9536f3b4475c99c3311d0e188243cf3 /util.c | |
parent | f907dd3c15b3b24c5ed22c0f03894760aee07657 (diff) | |
download | perl-95a8bf056d926c05c7ee65397256d9d065a83699.tar.gz |
Remove gettimeofday() workarounds for VMS in util.c.
VMS has had gettimeofday() since v7.0, released in 1999, so there's
no reason now to be special casing native workarounds.
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 19 |
1 files changed, 4 insertions, 15 deletions
@@ -4515,16 +4515,10 @@ Perl_seed(pTHX) int fd; #endif U32 u; -#ifdef VMS - /* when[] = (low 32 bits, high 32 bits) of time since epoch - * in 100-ns units, typically incremented ever 10 ms. */ - unsigned int when[2]; -#else -# ifdef HAS_GETTIMEOFDAY +#ifdef HAS_GETTIMEOFDAY struct timeval when; -# else +#else Time_t when; -# endif #endif /* This test is an escape hatch, this symbol isn't set by Configure. */ @@ -4546,17 +4540,12 @@ Perl_seed(pTHX) } #endif -#ifdef VMS - _ckvmssts(sys$gettim(when)); - u = (U32)SEED_C1 * when[0] + (U32)SEED_C2 * when[1]; -#else -# ifdef HAS_GETTIMEOFDAY +#ifdef HAS_GETTIMEOFDAY PerlProc_gettimeofday(&when,NULL); u = (U32)SEED_C1 * when.tv_sec + (U32)SEED_C2 * when.tv_usec; -# else +#else (void)time(&when); u = (U32)SEED_C1 * when; -# endif #endif u += SEED_C3 * (U32)PerlProc_getpid(); u += SEED_C4 * (U32)PTR2UV(PL_stack_sp); |