Skip to content

Added underscores to gettid(void) to remove name clash #461

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

Merged
merged 3 commits into from
Mar 21, 2019

Conversation

tachoknight
Copy link
Contributor

with system-provided gettid() in /usr/include/bits/unistd_ext.h that is not static.

According to https://raw.githubusercontent.com/bminor/glibc/master/ChangeLog, Florian Weimer moved units_ext.h from sysdeps/generic/bits to bits and libdispatch won't compile due to the function having different declarations between the system-provided one and the one defined in queue.c.

I figure that, since it's only being called in one spot in the same file, it was safe to rename the function in without having to make a special #ifdef Linux-only version.

…ovided gettid() in /usr/include/bits/unistd_ext.h that is not static
@compnerd
Copy link
Member

@swift-ci please test

@compnerd
Copy link
Member

CC: @ktopley-apple

Copy link
Contributor

@ktopley-apple ktopley-apple left a comment

Choose a reason for hiding this comment

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

I think you should use _gettid() instead of __gettid() to be more consistent with the existing naming conventions.

@ktopley-apple
Copy link
Contributor

@swift-ci please test

@ktopley-apple ktopley-apple merged commit cbd70d1 into swiftlang:master Mar 21, 2019
rokhinip pushed a commit that referenced this pull request Nov 5, 2021
Added underscores to gettid(void) to remove name clash

Signed-off-by: Kim Topley <[email protected]>
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