Skip to content

Commit

Permalink
Fix build on systems that doesn't use glibc
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Dec 14, 2012
1 parent e9eb3ec commit 472cf22
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/common/SystemFunctions.cpp
Expand Up @@ -63,8 +63,10 @@
#if defined(__APPLE__) && defined(MAC_OS_X_VERSION_10_6) && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6
#define HAVE_PTHREAD_NAME
// glibc 2.12 introduced this
#elif __GLIBC_PREREQ(2,12)
#define HAVE_PTHREAD_NAME
#elif defined(__GLIBC_PREREQ)
# if __GLIBC_PREREQ(2,12)
# define HAVE_PTHREAD_NAME
# endif
#endif
#endif

Expand Down

0 comments on commit 472cf22

Please sign in to comment.