summaryrefslogtreecommitdiff
path: root/one.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <[email protected]>2020-11-24 14:01:46 -0800
committerAdam Ierymenko <[email protected]>2020-11-24 14:01:46 -0800
commitbad1e0d529a7c5162feb625bb7b6cf440653e48f (patch)
treeae0b15f01865ec2f0c02142213b6ae67e235cffb /one.cpp
parent891815054c74bd80414bb8a2d429e69c2cce3912 (diff)
CentOS build fixes to build in Cent7.
Diffstat (limited to 'one.cpp')
-rw-r--r--one.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/one.cpp b/one.cpp
index f09ad5df..2f4d7ede 100644
--- a/one.cpp
+++ b/one.cpp
@@ -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;