CentOS build fixes to build in Cent7.

This commit is contained in:
Adam Ierymenko 2020-11-24 14:01:46 -08:00
parent 891815054c
commit bad1e0d529
2 changed files with 15 additions and 11 deletions

View file

@ -2068,7 +2068,7 @@ int __cdecl _tmain(int argc, _TCHAR* argv[])
int main(int argc,char **argv)
#endif
{
#ifdef __LINUX__
#if defined(__LINUX__) && ( (!defined(__GLIBC__)) || ((__GLIBC__ >= 2) && (__GLIBC_MINOR__ >= 18)) )
// This corrects for systems with abnormally small defaults (musl) and also
// shrinks the stack on systems with large defaults to save a bit of memory.
pthread_attr_t tattr;