[Bug 2881] getdelim definition in openbsd compat conflicts with /usr/include/stdio.h on Fedora 28 with master

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Wed Jul 4 04:31:27 AEST 2018


Roumen Petrov <bugtrack at roumenpetrov.info> changed:

           What    |Removed                     |Added
                 CC|                            |bugtrack at roumenpetrov.info

--- Comment #1 from Roumen Petrov <bugtrack at roumenpetrov.info> ---
No comments on proposed patch!

Few lines after /usr/include/stdio.h:606: is getline declaration.
For protocol in current master getdelim 
) in online 600 while get;line on 610.

Real question why on this system getline is not detected?

- on linux  configure script defines -D_XOPEN_SOURCE=600 -D_BSD_SOURCE

- if _DEFAULT_SOURCE is defined then   _POSIX_C_SOURCE is set to

- __USE_XOPEN2K8 is set to 1 if _POSIX_C_SOURCE > 200112L or
POSIX_C_SOURCE >= 200809L (

- if __USE_XOPEN2K8 is defined stdio.h header should declare getdelim
and getline .

I cannot reproduce issue on other GNU C-lib (old 2.23). 

Why detection fail on reported system?

You are receiving this mail because:
You are watching the assignee of the bug.

More information about the openssh-bugs mailing list