mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Support macOS OSX
This commit is contained in:
parent
b3b76b0ca6
commit
c339542ce0
13 changed files with 312 additions and 51 deletions
|
@ -46,7 +46,7 @@ int SrsThreadContext::generate_id()
|
|||
static int id = 0;
|
||||
|
||||
if (id == 0) {
|
||||
id = (100 + ((int)(int64_t)this)%1000);
|
||||
id = (100 + ((uint32_t)(int64_t)this)%1000);
|
||||
}
|
||||
|
||||
int gid = id++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue