Skip to content

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 <ktopley@apple.com>
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