Check for PR_GET_NAME

PR_GET_NAME may not be defined when using an old kernel. Deal with it.
This commit is contained in:
Emmanuel Pacaud 2012-11-07 09:58:45 +01:00
parent 753494a25e
commit a9eb1907a6

View File

@ -168,11 +168,13 @@ static gpointer
thread6_func (gpointer data)
{
#ifdef HAVE_SYS_PRCTL_H
#ifdef PR_GET_NAME
const gchar name[16];
prctl (PR_GET_NAME, name, 0, 0, 0, 0);
g_assert_cmpstr (name, ==, (gchar*)data);
#endif
#endif
return NULL;