mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-30 20:33:08 +02: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)
|
thread6_func (gpointer data)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_SYS_PRCTL_H
|
#ifdef HAVE_SYS_PRCTL_H
|
||||||
|
#ifdef PR_GET_NAME
|
||||||
const gchar name[16];
|
const gchar name[16];
|
||||||
|
|
||||||
prctl (PR_GET_NAME, name, 0, 0, 0, 0);
|
prctl (PR_GET_NAME, name, 0, 0, 0, 0);
|
||||||
|
|
||||||
g_assert_cmpstr (name, ==, (gchar*)data);
|
g_assert_cmpstr (name, ==, (gchar*)data);
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user