Skip to content
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

gettid impl in macOS and cygwin64 #3996

Closed
suzp1984 opened this issue Mar 18, 2024 · 1 comment
Closed

gettid impl in macOS and cygwin64 #3996

suzp1984 opened this issue Mar 18, 2024 · 1 comment
Assignees
Labels
Deleting Will deleted in future. EnglishNative This issue is conveyed exclusively in English.

Comments

@suzp1984
Copy link
Contributor

#if defined(SRS_OSX) || defined(SRS_CYGWIN64)
pid_t gettid() {
return 0;
}
#else
#if __GLIBC__ == 2 && __GLIBC_MINOR__ < 30
#include <sys/syscall.h>
#define gettid() syscall(SYS_gettid)
#endif
#endif

I already met same issue in another project:
https://github.com/signalwire/libks/pull/205/files

So why not add this patch here?

@winlinvip winlinvip added the EnglishNative This issue is conveyed exclusively in English. label Mar 18, 2024
suzp1984 added a commit to suzp1984/srs that referenced this issue Mar 18, 2024
suzp1984 added a commit to suzp1984/srs that referenced this issue Mar 18, 2024
suzp1984 added a commit to suzp1984/srs that referenced this issue Mar 18, 2024
suzp1984 added a commit to suzp1984/srs that referenced this issue Mar 18, 2024
suzp1984 added a commit to suzp1984/srs that referenced this issue Mar 18, 2024
suzp1984 added a commit to suzp1984/srs that referenced this issue Mar 19, 2024
suzp1984 added a commit to suzp1984/srs that referenced this issue Mar 19, 2024
suzp1984 added a commit to suzp1984/srs that referenced this issue Mar 19, 2024
suzp1984 added a commit to suzp1984/srs that referenced this issue Mar 19, 2024
suzp1984 added a commit to suzp1984/srs that referenced this issue Mar 19, 2024
suzp1984 added a commit to suzp1984/srs that referenced this issue Mar 19, 2024
suzp1984 added a commit to suzp1984/srs that referenced this issue Mar 19, 2024
suzp1984 added a commit to suzp1984/srs that referenced this issue Mar 20, 2024
suzp1984 added a commit to suzp1984/srs that referenced this issue Mar 20, 2024
suzp1984 added a commit to suzp1984/srs that referenced this issue Mar 20, 2024
@winlinvip
Copy link
Member

Please do not open an issue, unless you really need to open a bug report.

  1. Open a discussion if want to discuss.
  2. Open a pull request if want to improve, where we can discuss at.

I will delete this issue.

@winlinvip winlinvip added the Deleting Will deleted in future. label Mar 21, 2024
@winlinvip winlinvip self-assigned this Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deleting Will deleted in future. EnglishNative This issue is conveyed exclusively in English.
Projects
None yet
Development

No branches or pull requests

2 participants