mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
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:
parent
753494a25e
commit
a9eb1907a6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user