Skip to content

Allow for enabling of USE_IMP_SYS in Win32 unthreaded builds. #45

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sisyphus
Copy link

Enabled by merging of Perl/perl5#23178 .
As of the merging of that PR, it is possible that an unthreaded Win32 build of perl has both USE_MULTI and USE_IMP_SYS defined.
The opening line of code in t/GetCurrentThreadId.t makes the (now) incorrect assumption that the perl is unthreaded because USE_IMP_SYS is defined.
This PR corrects that opening line by instead checking $Config{useithreads} for definedness.

@jkeenan
Copy link

jkeenan commented Jul 31, 2025

@xenu, @jandubois, can you please review this pull request and then prepare a new CPAN release (which we would then merge into the Perl 5 core distribution)? Thanks.

Copy link
Member

@jandubois jandubois left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM

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.

3 participants