Not all Linux systems have a header that declares _CS_GNU_LIBPTHREAD_VERSION (Slackware 9.0 included apparently)
This commit is contained in:
@@ -97,7 +97,9 @@ static int PtraceDetach( int ThreadID )
|
|||||||
|
|
||||||
CString ThreadsVersion()
|
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];
|
char buf[1024];
|
||||||
int ret = confstr( _CS_GNU_LIBPTHREAD_VERSION, buf, sizeof(buf) );
|
int ret = confstr( _CS_GNU_LIBPTHREAD_VERSION, buf, sizeof(buf) );
|
||||||
RAGE_ASSERT_M( ret != -1, ssprintf( "%i", ret) );
|
RAGE_ASSERT_M( ret != -1, ssprintf( "%i", ret) );
|
||||||
|
|||||||
Reference in New Issue
Block a user