diff --git a/src/xpdev/threadwrap.h b/src/xpdev/threadwrap.h
index 00d3de4d37a33cf003513c626ff88124765461b7..3beeea1fc91777d74ed0b08587d07f6d8815d79f 100644
--- a/src/xpdev/threadwrap.h
+++ b/src/xpdev/threadwrap.h
@@ -106,6 +106,8 @@ pthread_mutex_t pthread_mutex_initializer_np(BOOL recursive);
  #include <features.h>
  #if (__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 12))
   #define	SetThreadName(c)	pthread_setname_np(pthread_self(),c)
+ #else
+  #define SetThreadName(c)
  #endif
 #else
  #define SetThreadName(c)