Skip to content

hints/darwin.sh: Use mkostemp from Sierra onwards - #24628

Open
sevan wants to merge 2 commits into
Perl:bleadfrom
sevan:darwin-mkostemp-guard
Open

hints/darwin.sh: Use mkostemp from Sierra onwards#24628
sevan wants to merge 2 commits into
Perl:bleadfrom
sevan:darwin-mkostemp-guard

Conversation

@sevan

@sevan sevan commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

It's found defined in unistd.h in El Capitan but guarded off with availability macros to indicate it's available from 10.12.
I guess that's where the issue arose with it being detected and not being able to link to it.

Tested with Perl 5.44.0 on OS X El Capitan 10.11 (darwin 15) with test suite passing.
Tested with Perl 5.44.0 on macOS Sierra 10.12 (darwin 16) with test suite passing.
Tested with blead on macOS 12 (darwin 21) with test suite passing.

  • This set of changes requires a perldelta entry, and it is included.

It's found defined in unistd.h in El Capitan but guarded off with
availability macros to indicate it's available from 10.12.
I guess that's where the issue arose with it being detected and not
being able to link to it.
@sevan
sevan force-pushed the darwin-mkostemp-guard branch from 17327ae to 888929b Compare July 28, 2026 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants