Skip to content
Snippets Groups Projects
Commit 68cb0ae7 authored by deuce's avatar deuce
Browse files

Fix break pthread detection on ancient Linux installs.

parent f9690ebb
No related branches found
No related tags found
No related merge requests found
......@@ -1619,6 +1619,8 @@ int main(int argc, char** argv)
#ifdef _THREAD_SUID_BROKEN
/* check if we're using NPTL */
/* Old (2.2) systems don't have this. */
#ifdef _CS_GNU_LIBPTHREAD_VERSION
conflen=confstr (_CS_GNU_LIBPTHREAD_VERSION, NULL, 0);
if (conflen > 0) {
char *buf = alloca (conflen);
......@@ -1626,6 +1628,7 @@ int main(int argc, char** argv)
if (strstr (buf, "NPTL"))
thread_suid_broken=FALSE;
}
#endif
#endif
/* Install Ctrl-C/Break signal handler here */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment