crypto/rand/rand_lib.c: fix undefined reference to `clock_gettime'
authorDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Tue, 30 Jan 2018 22:53:57 +0000 (23:53 +0100)
committerDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Wed, 31 Jan 2018 16:16:40 +0000 (17:16 +0100)
commit2e230e8687486b71c113915b864d6b1f6d465ed1
tree69f8f57cec2f3cffe954313c3bc982165151d58c
parent85d6ad34aa0158fb25538e116e611e6b858d3638
crypto/rand/rand_lib.c: fix undefined reference to `clock_gettime'

Some older glibc versions require the `-lrt` linker option for
resolving the reference to `clock_gettime'. Since it is not desired
to add new library dependencies in version 1.1.1, the call to
clock_gettime() is replaced by a call to gettimeofday() for the
moment. It will be added back in version 1.2.

Signed-off-by: Dr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/5199)
crypto/rand/rand_lib.c