Skip to content

Commit 472cf22

Browse files
committed
Fix build on systems that doesn't use glibc
1 parent e9eb3ec commit 472cf22

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/common/SystemFunctions.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,10 @@
6363
#if defined(__APPLE__) && defined(MAC_OS_X_VERSION_10_6) && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6
6464
#define HAVE_PTHREAD_NAME
6565
// glibc 2.12 introduced this
66-
#elif __GLIBC_PREREQ(2,12)
67-
#define HAVE_PTHREAD_NAME
66+
#elif defined(__GLIBC_PREREQ)
67+
# if __GLIBC_PREREQ(2,12)
68+
# define HAVE_PTHREAD_NAME
69+
# endif
6870
#endif
6971
#endif
7072

0 commit comments

Comments
 (0)