[Ada] Posix 2008: reimplement System.OS_Primitives.Clock using clock_gettime
authorDoug Rupp <rupp@adacore.com>
Thu, 31 May 2018 10:44:56 +0000 (10:44 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Thu, 31 May 2018 10:44:56 +0000 (10:44 +0000)
commit4cfb305e9c5c3fb8f7e9afd184802265f8a0e665
treef03511652865c5959605982cfcce944f74752ad1
parentade649b2bfd24a1adcc28d96fa4b81878efe1c0b
[Ada] Posix 2008: reimplement System.OS_Primitives.Clock using clock_gettime

gettimeofday is deprecated in Posix 2008, clock_gettime is the recommended
replacement.

2018-05-31  Doug Rupp  <rupp@adacore.com>

gcc/ada/

* libgnat/s-osprim__posix2008.adb (Clock): Implement using
clock_gettime.

From-SVN: r260995
gcc/ada/ChangeLog
gcc/ada/libgnat/s-osprim__posix2008.adb