Re: [PATCH] cobol: Avoid conflict with timespec_t in system headers [PR119217]

2025-04-11 Thread Richard Biener
On Fri, Apr 11, 2025 at 11:11 AM Rainer Orth 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 declares

[PATCH] cobol: Avoid conflict with timespec_t in system headers [PR119217]

2025-04-11 Thread Rainer Orth
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 declares timespec_t itself. In fact, POSIX.1 reserves every *_t identifier, s