https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24012

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING

--- Comment #37 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Gerald Pfeifer from comment #4)
> Historically, on some systems one had to define _POSIX_C_SOURCE to get at
> fileno(), which has been used by code generated by flex() and probably
> others.

Is this still an issue in 2026? Do we care about ancient systems that don't
provide POSIX APIs from decades ago?

The answer should be "don't define _POSIX_C_SOURCE=1 when compiling C++".  See
also Bug 93469 comment 10.

Reply via email to