ossrs / srs

SRS is a simple, high-efficiency, real-time video server supporting RTMP, WebRTC, HLS, HTTP-FLV, SRT, MPEG-DASH, and GB28181.

Home Page:https://ossrs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gettid impl in macOS and cygwin64

suzp1984 opened this issue · comments

#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?

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.