[MacPorts] #71842: legacy-support: include sys/stdio.h from stdio.h

MacPorts noreply at macports.org
Thu Jan 16 00:20:43 UTC 2025


#71842: legacy-support: include sys/stdio.h from stdio.h
-----------------------------+--------------------
  Reporter:  barracuda156    |      Owner:  (none)
      Type:  defect          |     Status:  new
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:  2.10.5
Resolution:                  |   Keywords:
      Port:  legacy-support  |
-----------------------------+--------------------

Comment (by fhgwright):

 Replying to [ticket:71842 barracuda156]:
 > Apple headers from 10.10+ include `sys/stdio.h` from `stdio.h`, which
 makes `renameat` available: https://github.com/alexey-lysiuk/macos-
 sdk/blob/69ddec41e6224afebd5f19bb24764305ac3e828a/MacOSX10.10.sdk/usr/include/stdio.h#L75

 Not exactly.  In the 10.10-10.12 SDKs, it's indeed included by stdio.h,
 but in the 10.13+ SDKs it's included by ''_stdio.h'' and ''not'' by
 stdio.h.  So there's some question about what the "correct" behavior
 should be considered to be, and how the software in question decides what
 header to use.

 Copying the later behavior would probably make more sense.

-- 
Ticket URL: <https://trac.macports.org/ticket/71842#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list