mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
1. Support cygwin by '--cygwin64=on' 2. Detect cygwin automatically. 3. Disalbe sanitizer, srt and srtp with openssl. 4. Disable multiple threads, use single threads. 5. Support utest for cygwin64. 6. Query features for windows by API. 7. Disable stat APIs for cygwin. 8. Use ST select event driver. Co-authored-by: wenjie.zhao <740936897@qq.com>
This commit is contained in:
parent
3d0dcb2a17
commit
d741f81110
15 changed files with 122 additions and 30 deletions
|
|
@ -36,7 +36,7 @@ using namespace std;
|
|||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
#ifdef SRS_OSX
|
||||
#if defined(SRS_OSX) || defined(SRS_CYGWIN64)
|
||||
pid_t gettid() {
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -49,7 +49,7 @@ using namespace std;
|
|||
|
||||
// These functions first appeared in glibc in version 2.12.
|
||||
// See https://man7.org/linux/man-pages/man3/pthread_setname_np.3.html
|
||||
#if defined(SRS_CROSSBUILD) && ((__GLIBC__ < 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 12))
|
||||
#if defined(SRS_CYGWIN64) || (defined(SRS_CROSSBUILD) && ((__GLIBC__ < 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 12)))
|
||||
void pthread_setname_np(pthread_t trd, const char* name) {
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue