Check for PR_SET_NAME

Bug 680148 claims that PR_SET_NAME may not be defined when
using an old kernel. Deal with it.
This commit is contained in:
Matthias Clasen 2012-07-19 06:37:59 -04:00
parent 4c255d4602
commit 23a2136fb5

View File

@ -1172,8 +1172,10 @@ void
g_system_thread_set_name (const gchar *name)
{
#ifdef HAVE_SYS_PRCTL_H
#ifdef PR_SET_NAME
prctl (PR_SET_NAME, name, 0, 0, 0, 0);
#endif
#endif
}
/* {{{1 Epilogue */