Not all Linux systems have a header that declares _CS_GNU_LIBPTHREAD_VERSION (Slackware 9.0 included apparently)

This commit is contained in:
Ben Anderson
2004-03-14 19:46:16 +00:00
parent 199c0aa0bc
commit 6fca202800
@@ -97,7 +97,9 @@ static int PtraceDetach( int ThreadID )
CString ThreadsVersion()
{
#if defined(LINUX)
// Not all systems have a header that declares _CS_GNU_LIBPTHREAD_VERSION.
// Deal with it.
#if defined(LINUX) and defined(_CS_GNU_LIBPTHREAD_VERSION)
char buf[1024];
int ret = confstr( _CS_GNU_LIBPTHREAD_VERSION, buf, sizeof(buf) );
RAGE_ASSERT_M( ret != -1, ssprintf( "%i", ret) );