On Fri, Apr 11, 2025 at 11:11 AM Rainer Orth
<r...@cebitec.uni-bielefeld.de> wrote:
>
> util.cc doesn't compile on Solaris:
>
> /vol/gcc/src/hg/master/local/gcc/cobol/util.cc:2135:7: error: using 
> typedef-name ‘timespec_t’ after ‘class’
>  2135 | class timespec_t {
>       |       ^~~~~~~~~~
>
> This happens because <time.h> declares timespec_t itself.  In fact,
> POSIX.1 reserves every *_t identifier, so this is benign.
>
> To avoid the problem, this patch renames the cobol timespec_t to
> cbl_timespec.
>
> Bootstrapped without regressions on amd64-pc-solaris2.11,
> sparcv9-sun-solaris2.11, and x86_64-pc-linux-gnu.
>
> Ok for trunk?

OK.

Richard.

>
>         Rainer
>
> --
> -----------------------------------------------------------------------------
> Rainer Orth, Center for Biotechnology, Bielefeld University
>
>
> 2025-04-08  Rainer Orth  <r...@cebitec.uni-bielefeld.de>
>
>         gcc/cobol:
>         PR cobol/119217
>         * util.cc (class timespec_t): Rename to cbl_timespec.
>

Reply via email to