From 6fca202800ed33569645fdfec87f50b13b7a59a8 Mon Sep 17 00:00:00 2001 From: Ben Anderson Date: Sun, 14 Mar 2004 19:46:16 +0000 Subject: [PATCH] Not all Linux systems have a header that declares _CS_GNU_LIBPTHREAD_VERSION (Slackware 9.0 included apparently) --- stepmania/src/archutils/Unix/LinuxThreadHelpers.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stepmania/src/archutils/Unix/LinuxThreadHelpers.cpp b/stepmania/src/archutils/Unix/LinuxThreadHelpers.cpp index e31873710e..346359f572 100644 --- a/stepmania/src/archutils/Unix/LinuxThreadHelpers.cpp +++ b/stepmania/src/archutils/Unix/LinuxThreadHelpers.cpp @@ -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) );