From: James Clarke Date: Thu, 4 Jul 2019 13:36:08 +0000 (+0000) Subject: s-osinte__kfreebsd-gnu.ads (clockid_t): Make type definition public. X-Git-Tag: releases/gcc-9.2.0~169 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=678cb3594903cd4ae99a70c7b071f38b7c5f8e4e;p=thirdparty%2Fgcc.git s-osinte__kfreebsd-gnu.ads (clockid_t): Make type definition public. 2019-07-04 James Clarke * libgnarl/s-osinte__kfreebsd-gnu.ads (clockid_t): Make type definition public. (CLOCK_REALTIME): Make value public. From-SVN: r273081 --- diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 1b9140bd53cf..5d377469eea4 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,9 @@ +2019-07-04 James Clarke + + * libgnarl/s-osinte__kfreebsd-gnu.ads (clockid_t): Make type + definition public. + (CLOCK_REALTIME): Make value public. + 2019-06-29 Eric Botcazou * gcc-interface/decl.c (gnat_to_gnu_entity): Beep up comment on SAVED, diff --git a/gcc/ada/libgnarl/s-osinte__kfreebsd-gnu.ads b/gcc/ada/libgnarl/s-osinte__kfreebsd-gnu.ads index f46bbda18eaf..aa6c1a86bcce 100644 --- a/gcc/ada/libgnarl/s-osinte__kfreebsd-gnu.ads +++ b/gcc/ada/libgnarl/s-osinte__kfreebsd-gnu.ads @@ -206,9 +206,8 @@ package System.OS_Interface is function nanosleep (rqtp, rmtp : access timespec) return int; pragma Import (C, nanosleep, "nanosleep"); - type clockid_t is private; - - CLOCK_REALTIME : constant clockid_t; + type clockid_t is new int; + CLOCK_REALTIME : constant clockid_t := 0; function clock_gettime (clock_id : clockid_t; @@ -607,9 +606,6 @@ private end record; pragma Convention (C, timespec); - type clockid_t is new int; - CLOCK_REALTIME : constant clockid_t := 0; - type pthread_attr_t is record detachstate : int; schedpolicy : int;