https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119217
--- Comment #13 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Rainer Orth <r...@gcc.gnu.org>: https://gcc.gnu.org/g:962c3d69f189f6fa451153faf3ce261c50d23d5a commit r15-9413-g962c3d69f189f6fa451153faf3ce261c50d23d5a Author: Rainer Orth <r...@cebitec.uni-bielefeld.de> Date: Sun Apr 13 12:53:54 2025 +0200 cobol: Avoid conflict with timespec_t in system headers [PR119217] 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. 2025-04-08 Rainer Orth <r...@cebitec.uni-bielefeld.de> gcc/cobol: PR cobol/119217 * util.cc (class timespec_t): Rename to cbl_timespec.